Package net.minecraft.block.entity
Class LecternBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.LecternBlockEntity
- All Implemented Interfaces:
NamedScreenHandlerFactory
,ScreenHandlerFactory
,Clearable
- Mappings:
Namespace Name named net/minecraft/block/entity/LecternBlockEntity
intermediary net/minecraft/class_3722
official dwb
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
-
Field Summary
Modifier and TypeFieldDescription(package private) ItemStack
(package private) int
static final int
static final int
static final int
static final int
private final Inventory
private int
private final PropertyDelegate
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
Returns whether the block item should require the player to have operator permissions to copy the block entity data on placement.createMenu
(int syncId, PlayerInventory playerInventory, PlayerEntity player) getBook()
private ServerCommandSource
getCommandSource
(@Nullable PlayerEntity player, ServerWorld world) int
int
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.private static int
getPageCount
(ItemStack stack) boolean
hasBook()
(package private) void
protected void
readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Reads data fromnbt
.private ItemStack
resolveBook
(ItemStack book, @Nullable PlayerEntity player) void
void
setBook
(ItemStack book, @Nullable PlayerEntity player) (package private) void
setCurrentPage
(int currentPage) protected void
writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_31348
public static final int field_31348- See Also:
- Mappings:
Namespace Name Mixin selector named field_31348
Lnet/minecraft/block/entity/LecternBlockEntity;field_31348:I
intermediary field_31348
Lnet/minecraft/class_3722;field_31348:I
official a
Ldwb;a:I
-
field_31349
public static final int field_31349- See Also:
- Mappings:
Namespace Name Mixin selector named field_31349
Lnet/minecraft/block/entity/LecternBlockEntity;field_31349:I
intermediary field_31349
Lnet/minecraft/class_3722;field_31349:I
official b
Ldwb;b:I
-
field_31350
public static final int field_31350- See Also:
- Mappings:
Namespace Name Mixin selector named field_31350
Lnet/minecraft/block/entity/LecternBlockEntity;field_31350:I
intermediary field_31350
Lnet/minecraft/class_3722;field_31350:I
official c
Ldwb;c:I
-
field_31351
public static final int field_31351- See Also:
- Mappings:
Namespace Name Mixin selector named field_31351
Lnet/minecraft/block/entity/LecternBlockEntity;field_31351:I
intermediary field_31351
Lnet/minecraft/class_3722;field_31351:I
official d
Ldwb;d:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventory
Lnet/minecraft/block/entity/LecternBlockEntity;inventory:Lnet/minecraft/inventory/Inventory;
intermediary field_17386
Lnet/minecraft/class_3722;field_17386:Lnet/minecraft/class_1263;
official e
Ldwb;e:Lbtb;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector named propertyDelegate
Lnet/minecraft/block/entity/LecternBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
intermediary field_17387
Lnet/minecraft/class_3722;field_17387:Lnet/minecraft/class_3913;
official f
Ldwb;f:Lctn;
-
book
ItemStack book- Mappings:
Namespace Name Mixin selector named book
Lnet/minecraft/block/entity/LecternBlockEntity;book:Lnet/minecraft/item/ItemStack;
intermediary field_17388
Lnet/minecraft/class_3722;field_17388:Lnet/minecraft/class_1799;
official g
Ldwb;g:Lcxo;
-
currentPage
int currentPage- Mappings:
Namespace Name Mixin selector named currentPage
Lnet/minecraft/block/entity/LecternBlockEntity;currentPage:I
intermediary field_17389
Lnet/minecraft/class_3722;field_17389:I
official h
Ldwb;h:I
-
pageCount
private int pageCount- Mappings:
Namespace Name Mixin selector named pageCount
Lnet/minecraft/block/entity/LecternBlockEntity;pageCount:I
intermediary field_17390
Lnet/minecraft/class_3722;field_17390:I
official i
Ldwb;i:I
-
-
Constructor Details
-
LecternBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/entity/LecternBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary <init>
Lnet/minecraft/class_3722;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldwb;<init>(Ljh;Ldxu;)V
-
-
Method Details
-
getBook
- Mappings:
Namespace Name Mixin selector named getBook
Lnet/minecraft/block/entity/LecternBlockEntity;getBook()Lnet/minecraft/item/ItemStack;
intermediary method_17520
Lnet/minecraft/class_3722;method_17520()Lnet/minecraft/class_1799;
official b
Ldwb;b()Lcxo;
-
hasBook
public boolean hasBook()- Mappings:
Namespace Name Mixin selector named hasBook
Lnet/minecraft/block/entity/LecternBlockEntity;hasBook()Z
intermediary method_17522
Lnet/minecraft/class_3722;method_17522()Z
official c
Ldwb;c()Z
-
setBook
- Mappings:
Namespace Name Mixin selector named setBook
Lnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;)V
intermediary method_17513
Lnet/minecraft/class_3722;method_17513(Lnet/minecraft/class_1799;)V
official b
Ldwb;b(Lcxo;)V
-
onBookRemoved
void onBookRemoved()- Mappings:
Namespace Name Mixin selector named onBookRemoved
Lnet/minecraft/block/entity/LecternBlockEntity;onBookRemoved()V
intermediary method_17525
Lnet/minecraft/class_3722;method_17525()V
official k
Ldwb;k()V
-
setBook
- Mappings:
Namespace Name Mixin selector named setBook
Lnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_17514
Lnet/minecraft/class_3722;method_17514(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)V
official a
Ldwb;a(Lcxo;Lcpw;)V
-
setCurrentPage
void setCurrentPage(int currentPage) - Mappings:
Namespace Name Mixin selector named setCurrentPage
Lnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)V
intermediary method_17511
Lnet/minecraft/class_3722;method_17511(I)V
official a
Ldwb;a(I)V
-
getCurrentPage
public int getCurrentPage()- Mappings:
Namespace Name Mixin selector named getCurrentPage
Lnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()I
intermediary method_17523
Lnet/minecraft/class_3722;method_17523()I
official f
Ldwb;f()I
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector named getComparatorOutput
Lnet/minecraft/block/entity/LecternBlockEntity;getComparatorOutput()I
intermediary method_17524
Lnet/minecraft/class_3722;method_17524()I
official j
Ldwb;j()I
-
resolveBook
- Mappings:
Namespace Name Mixin selector named resolveBook
Lnet/minecraft/block/entity/LecternBlockEntity;resolveBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
intermediary method_17518
Lnet/minecraft/class_3722;method_17518(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;
official b
Ldwb;b(Lcxo;Lcpw;)Lcxo;
-
getCommandSource
private ServerCommandSource getCommandSource(@Nullable @Nullable PlayerEntity player, ServerWorld world) - Mappings:
Namespace Name Mixin selector named getCommandSource
Lnet/minecraft/block/entity/LecternBlockEntity;getCommandSource(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;
intermediary method_17512
Lnet/minecraft/class_3722;method_17512(Lnet/minecraft/class_1657;Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;
official a
Ldwb;a(Lcpw;Lash;)Lew;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()Returns whether the block item should require the player to have operator permissions to copy the block entity data on placement.Block entities that can execute commands should override this to return
true
.- Overrides:
copyItemDataRequiresOperator
in classBlockEntity
- Returns:
- whether the block item should require the player to have operator permissions to copy the block entity data on placement
- See Also:
- Mappings:
Namespace Name Mixin selector named copyItemDataRequiresOperator
Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
intermediary method_11011
Lnet/minecraft/class_2586;method_11011()Z
official p
Lduw;p()Z
-
readNbt
Reads data fromnbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official a
Lduw;a(Lux;Ljs$a;)V
-
writeNbt
Writes data tonbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Lduw;b(Lux;Ljs$a;)V
-
clear
public void clear() -
createMenu
- Specified by:
createMenu
in interfaceScreenHandlerFactory
- Mappings:
Namespace Name Mixin selector named createMenu
Lnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
intermediary createMenu
Lnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;
official createMenu
Lcuj;createMenu(ILcpv;Lcpw;)Lctb;
-
getDisplayName
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
getDisplayName
in interfaceNamedScreenHandlerFactory
- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_5476
Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
official p_
Lbtk;p_()Lxv;
-
getPageCount
- Mappings:
Namespace Name Mixin selector named getPageCount
Lnet/minecraft/block/entity/LecternBlockEntity;getPageCount(Lnet/minecraft/item/ItemStack;)I
intermediary method_57591
Lnet/minecraft/class_3722;method_57591(Lnet/minecraft/class_1799;)I
official c
Ldwb;c(Lcxo;)I
-