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 - official - dao- intermediary - net/minecraft/class_3722- named - net/minecraft/block/entity/LecternBlockEntity
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) ItemStack(package private) intstatic final intstatic final intstatic final intstatic final intprivate final Inventoryprivate intprivate final PropertyDelegateFields inherited from class net.minecraft.block.entity.BlockEntitypos, removed, world
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()booleanReturns 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 ServerCommandSourcegetCommandSource(@Nullable PlayerEntity player) intintReturns the title of this screen handler; will be a part of the open screen packet sent to the client.booleanhasBook()(package private) voidvoidreadNbt(NbtCompound nbt) Reads data fromnbt.private ItemStackresolveBook(ItemStack book, @Nullable PlayerEntity player) voidvoidsetBook(ItemStack book, @Nullable PlayerEntity player) (package private) voidsetCurrentPage(int currentPage) protected voidwriteNbt(NbtCompound nbt) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntitycancelRemoval, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
- 
Field Details- 
field_31348public static final int field_31348- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldao;a:I- intermediary - field_31348- Lnet/minecraft/class_3722;field_31348:I- named - field_31348- Lnet/minecraft/block/entity/LecternBlockEntity;field_31348:I
 
- 
field_31349public static final int field_31349- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldao;b:I- intermediary - field_31349- Lnet/minecraft/class_3722;field_31349:I- named - field_31349- Lnet/minecraft/block/entity/LecternBlockEntity;field_31349:I
 
- 
field_31350public static final int field_31350- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldao;c:I- intermediary - field_31350- Lnet/minecraft/class_3722;field_31350:I- named - field_31350- Lnet/minecraft/block/entity/LecternBlockEntity;field_31350:I
 
- 
field_31351public static final int field_31351- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - d- Ldao;d:I- intermediary - field_31351- Lnet/minecraft/class_3722;field_31351:I- named - field_31351- Lnet/minecraft/block/entity/LecternBlockEntity;field_31351:I
 
- 
inventory- Mappings:
- Namespace - Name - Mixin selector - official - e- Ldao;e:Lbdq;- intermediary - field_17386- Lnet/minecraft/class_3722;field_17386:Lnet/minecraft/class_1263;- named - inventory- Lnet/minecraft/block/entity/LecternBlockEntity;inventory:Lnet/minecraft/inventory/Inventory;
 
- 
propertyDelegate- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldao;f:Lcbp;- intermediary - field_17387- Lnet/minecraft/class_3722;field_17387:Lnet/minecraft/class_3913;- named - propertyDelegate- Lnet/minecraft/block/entity/LecternBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
 
- 
bookItemStack book- Mappings:
- Namespace - Name - Mixin selector - official - g- Ldao;g:Lcfz;- intermediary - field_17388- Lnet/minecraft/class_3722;field_17388:Lnet/minecraft/class_1799;- named - book- Lnet/minecraft/block/entity/LecternBlockEntity;book:Lnet/minecraft/item/ItemStack;
 
- 
currentPageint currentPage- Mappings:
- Namespace - Name - Mixin selector - official - h- Ldao;h:I- intermediary - field_17389- Lnet/minecraft/class_3722;field_17389:I- named - currentPage- Lnet/minecraft/block/entity/LecternBlockEntity;currentPage:I
 
- 
pageCountprivate int pageCount- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldao;i:I- intermediary - field_17390- Lnet/minecraft/class_3722;field_17390:I- named - pageCount- Lnet/minecraft/block/entity/LecternBlockEntity;pageCount:I
 
 
- 
- 
Constructor Details- 
LecternBlockEntity- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldao;<init>(Lgu;Ldcb;)V- intermediary - <init>- Lnet/minecraft/class_3722;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- named - <init>- Lnet/minecraft/block/entity/LecternBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
 
 
- 
- 
Method Details- 
getBook- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldao;c()Lcfz;- intermediary - method_17520- Lnet/minecraft/class_3722;method_17520()Lnet/minecraft/class_1799;- named - getBook- Lnet/minecraft/block/entity/LecternBlockEntity;getBook()Lnet/minecraft/item/ItemStack;
 
- 
hasBookpublic boolean hasBook()- Mappings:
- Namespace - Name - Mixin selector - official - f- Ldao;f()Z- intermediary - method_17522- Lnet/minecraft/class_3722;method_17522()Z- named - hasBook- Lnet/minecraft/block/entity/LecternBlockEntity;hasBook()Z
 
- 
setBook- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldao;a(Lcfz;)V- intermediary - method_17513- Lnet/minecraft/class_3722;method_17513(Lnet/minecraft/class_1799;)V- named - setBook- Lnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;)V
 
- 
onBookRemovedvoid onBookRemoved()- Mappings:
- Namespace - Name - Mixin selector - official - j- Ldao;j()V- intermediary - method_17525- Lnet/minecraft/class_3722;method_17525()V- named - onBookRemoved- Lnet/minecraft/block/entity/LecternBlockEntity;onBookRemoved()V
 
- 
setBook- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldao;a(Lcfz;Lbyo;)V- intermediary - method_17514- Lnet/minecraft/class_3722;method_17514(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)V- named - setBook- Lnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
 
- 
setCurrentPagevoid setCurrentPage(int currentPage) - Mappings:
- Namespace - Name - Mixin selector - official - a- Ldao;a(I)V- intermediary - method_17511- Lnet/minecraft/class_3722;method_17511(I)V- named - setCurrentPage- Lnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)V
 
- 
getCurrentPagepublic int getCurrentPage()- Mappings:
- Namespace - Name - Mixin selector - official - g- Ldao;g()I- intermediary - method_17523- Lnet/minecraft/class_3722;method_17523()I- named - getCurrentPage- Lnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()I
 
- 
getComparatorOutputpublic int getComparatorOutput()- Mappings:
- Namespace - Name - Mixin selector - official - i- Ldao;i()I- intermediary - method_17524- Lnet/minecraft/class_3722;method_17524()I- named - getComparatorOutput- Lnet/minecraft/block/entity/LecternBlockEntity;getComparatorOutput()I
 
- 
resolveBook- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldao;b(Lcfz;Lbyo;)Lcfz;- intermediary - method_17518- Lnet/minecraft/class_3722;method_17518(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;- named - resolveBook- Lnet/minecraft/block/entity/LecternBlockEntity;resolveBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
 
- 
getCommandSource- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldao;a(Lbyo;)Lds;- intermediary - method_17512- Lnet/minecraft/class_3722;method_17512(Lnet/minecraft/class_1657;)Lnet/minecraft/class_2168;- named - getCommandSource- Lnet/minecraft/block/entity/LecternBlockEntity;getCommandSource(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/server/command/ServerCommandSource;
 
- 
copyItemDataRequiresOperatorpublic 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:
- copyItemDataRequiresOperatorin class- BlockEntity
- 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 - official - t- Lczn;t()Z- intermediary - method_11011- Lnet/minecraft/class_2586;method_11011()Z- named - copyItemDataRequiresOperator- Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
 
- 
readNbtReads 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. nbtmight 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:
- readNbtin class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lczn;a(Lqr;)V- intermediary - method_11014- Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V- named - readNbt- Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
writeNbtWrites 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:
- writeNbtin class- BlockEntity
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lczn;b(Lqr;)V- intermediary - method_11007- Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V- named - writeNbt- Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
 
- 
clearpublic void clear()
- 
createMenu- Specified by:
- createMenuin interface- ScreenHandlerFactory
- Mappings:
- Namespace - Name - Mixin selector - official - createMenu- Lccj;createMenu(ILbyn;Lbyo;)Lcbf;- intermediary - createMenu- Lnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;- named - createMenu- Lnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
 
- 
getDisplayNameReturns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
- getDisplayNamein interface- NamedScreenHandlerFactory
- Mappings:
- Namespace - Name - Mixin selector - official - H_- Lbea;H_()Lsw;- intermediary - method_5476- Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;- named - getDisplayName- Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
 
 
-