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/LecternBlockEntityintermediary net/minecraft/class_3722official dzu
-
Field Summary
FieldsModifier 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.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()createMenu(int syncId, PlayerInventory playerInventory, PlayerEntity player) getBook()private ServerCommandSourcegetCommandSource(@Nullable PlayerEntity player, ServerWorld world) intintReturns the title of this screen handler; will be a part of the open screen packet sent to the client.private static intgetPageCount(ItemStack stack) booleanhasBook()voidonBlockReplaced(BlockPos pos, BlockState oldState) (package private) voidprotected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) 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, 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, 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_31348Lnet/minecraft/block/entity/LecternBlockEntity;field_31348:Iintermediary field_31348Lnet/minecraft/class_3722;field_31348:Iofficial aLdzu;a:I
-
field_31349
public static final int field_31349- See Also:
- Mappings:
Namespace Name Mixin selector named field_31349Lnet/minecraft/block/entity/LecternBlockEntity;field_31349:Iintermediary field_31349Lnet/minecraft/class_3722;field_31349:Iofficial bLdzu;b:I
-
field_31350
public static final int field_31350- See Also:
- Mappings:
Namespace Name Mixin selector named field_31350Lnet/minecraft/block/entity/LecternBlockEntity;field_31350:Iintermediary field_31350Lnet/minecraft/class_3722;field_31350:Iofficial cLdzu;c:I
-
field_31351
public static final int field_31351- See Also:
- Mappings:
Namespace Name Mixin selector named field_31351Lnet/minecraft/block/entity/LecternBlockEntity;field_31351:Iintermediary field_31351Lnet/minecraft/class_3722;field_31351:Iofficial dLdzu;d:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/block/entity/LecternBlockEntity;inventory:Lnet/minecraft/inventory/Inventory;intermediary field_17386Lnet/minecraft/class_3722;field_17386:Lnet/minecraft/class_1263;official eLdzu;e:Lbuv;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector named propertyDelegateLnet/minecraft/block/entity/LecternBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;intermediary field_17387Lnet/minecraft/class_3722;field_17387:Lnet/minecraft/class_3913;official fLdzu;f:Lcwn;
-
book
ItemStack book- Mappings:
Namespace Name Mixin selector named bookLnet/minecraft/block/entity/LecternBlockEntity;book:Lnet/minecraft/item/ItemStack;intermediary field_17388Lnet/minecraft/class_3722;field_17388:Lnet/minecraft/class_1799;official gLdzu;g:Ldak;
-
currentPage
int currentPage- Mappings:
Namespace Name Mixin selector named currentPageLnet/minecraft/block/entity/LecternBlockEntity;currentPage:Iintermediary field_17389Lnet/minecraft/class_3722;field_17389:Iofficial hLdzu;h:I
-
pageCount
private int pageCount- Mappings:
Namespace Name Mixin selector named pageCountLnet/minecraft/block/entity/LecternBlockEntity;pageCount:Iintermediary field_17390Lnet/minecraft/class_3722;field_17390:Iofficial iLdzu;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;)Vintermediary <init>Lnet/minecraft/class_3722;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldzu;<init>(Liw;Lebq;)V
-
-
Method Details
-
getBook
- Mappings:
Namespace Name Mixin selector named getBookLnet/minecraft/block/entity/LecternBlockEntity;getBook()Lnet/minecraft/item/ItemStack;intermediary method_17520Lnet/minecraft/class_3722;method_17520()Lnet/minecraft/class_1799;official cLdzu;c()Ldak;
-
hasBook
public boolean hasBook()- Mappings:
Namespace Name Mixin selector named hasBookLnet/minecraft/block/entity/LecternBlockEntity;hasBook()Zintermediary method_17522Lnet/minecraft/class_3722;method_17522()Zofficial fLdzu;f()Z
-
setBook
- Mappings:
Namespace Name Mixin selector named setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;)Vintermediary method_17513Lnet/minecraft/class_3722;method_17513(Lnet/minecraft/class_1799;)Vofficial bLdzu;b(Ldak;)V
-
onBookRemoved
void onBookRemoved()- Mappings:
Namespace Name Mixin selector named onBookRemovedLnet/minecraft/block/entity/LecternBlockEntity;onBookRemoved()Vintermediary method_17525Lnet/minecraft/class_3722;method_17525()Vofficial sLdzu;s()V
-
setBook
- Mappings:
Namespace Name Mixin selector named setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Vintermediary method_17514Lnet/minecraft/class_3722;method_17514(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Vofficial aLdzu;a(Ldak;Lcsi;)V
-
setCurrentPage
void setCurrentPage(int currentPage) - Mappings:
Namespace Name Mixin selector named setCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)Vintermediary method_17511Lnet/minecraft/class_3722;method_17511(I)Vofficial aLdzu;a(I)V
-
getCurrentPage
public int getCurrentPage()- Mappings:
Namespace Name Mixin selector named getCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()Iintermediary method_17523Lnet/minecraft/class_3722;method_17523()Iofficial jLdzu;j()I
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector named getComparatorOutputLnet/minecraft/block/entity/LecternBlockEntity;getComparatorOutput()Iintermediary method_17524Lnet/minecraft/class_3722;method_17524()Iofficial kLdzu;k()I
-
resolveBook
- Mappings:
Namespace Name Mixin selector named resolveBookLnet/minecraft/block/entity/LecternBlockEntity;resolveBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;intermediary method_17518Lnet/minecraft/class_3722;method_17518(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;official bLdzu;b(Ldak;Lcsi;)Ldak;
-
getCommandSource
private ServerCommandSource getCommandSource(@Nullable @Nullable PlayerEntity player, ServerWorld world) - Mappings:
Namespace Name Mixin selector named getCommandSourceLnet/minecraft/block/entity/LecternBlockEntity;getCommandSource(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_17512Lnet/minecraft/class_3722;method_17512(Lnet/minecraft/class_1657;Lnet/minecraft/class_3218;)Lnet/minecraft/class_2168;official aLdzu;a(Lcsi;Lasb;)Lek;
-
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.
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 classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdyo;a(Lua;Lji$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:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdyo;b(Lua;Lji$a;)V
-
clear
public void clear() -
onBlockReplaced
- Overrides:
onBlockReplacedin classBlockEntity- Mappings:
Namespace Name Mixin selector named onBlockReplacedLnet/minecraft/block/entity/BlockEntity;onBlockReplaced(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary method_66473Lnet/minecraft/class_2586;method_66473(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial aLdyo;a(Liw;Lebq;)V
-
createMenu
- Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;official createMenuLcxj;createMenu(ILcsh;Lcsi;)Lcwb;
-
getDisplayName
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
getDisplayNamein interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;official P_Lbve;P_()Lxg;
-
getPageCount
- Mappings:
Namespace Name Mixin selector named getPageCountLnet/minecraft/block/entity/LecternBlockEntity;getPageCount(Lnet/minecraft/item/ItemStack;)Iintermediary method_57591Lnet/minecraft/class_3722;method_57591(Lnet/minecraft/class_1799;)Iofficial cLdzu;c(Ldak;)I
-