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 intermediary net/minecraft/class_3722official dalnamed net/minecraft/block/entity/LecternBlockEntity
-
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()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.BlockEntity
cancelRemoval, 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_31348
public static final int field_31348- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31348Lnet/minecraft/class_3722;field_31348:Iofficial aLdal;a:Inamed field_31348Lnet/minecraft/block/entity/LecternBlockEntity;field_31348:I
-
field_31349
public static final int field_31349- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31349Lnet/minecraft/class_3722;field_31349:Iofficial bLdal;b:Inamed field_31349Lnet/minecraft/block/entity/LecternBlockEntity;field_31349:I
-
field_31350
public static final int field_31350- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31350Lnet/minecraft/class_3722;field_31350:Iofficial cLdal;c:Inamed field_31350Lnet/minecraft/block/entity/LecternBlockEntity;field_31350:I
-
field_31351
public static final int field_31351- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_31351Lnet/minecraft/class_3722;field_31351:Iofficial dLdal;d:Inamed field_31351Lnet/minecraft/block/entity/LecternBlockEntity;field_31351:I
-
inventory
- Mappings:
Namespace Name Mixin selector intermediary field_17386Lnet/minecraft/class_3722;field_17386:Lnet/minecraft/class_1263;official eLdal;e:Lbdp;named inventoryLnet/minecraft/block/entity/LecternBlockEntity;inventory:Lnet/minecraft/inventory/Inventory;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector intermediary field_17387Lnet/minecraft/class_3722;field_17387:Lnet/minecraft/class_3913;official fLdal;f:Lcbn;named propertyDelegateLnet/minecraft/block/entity/LecternBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
book
ItemStack book- Mappings:
Namespace Name Mixin selector intermediary field_17388Lnet/minecraft/class_3722;field_17388:Lnet/minecraft/class_1799;official gLdal;g:Lcfx;named bookLnet/minecraft/block/entity/LecternBlockEntity;book:Lnet/minecraft/item/ItemStack;
-
currentPage
int currentPage- Mappings:
Namespace Name Mixin selector intermediary field_17389Lnet/minecraft/class_3722;field_17389:Iofficial hLdal;h:Inamed currentPageLnet/minecraft/block/entity/LecternBlockEntity;currentPage:I
-
pageCount
private int pageCount- Mappings:
Namespace Name Mixin selector intermediary field_17390Lnet/minecraft/class_3722;field_17390:Iofficial iLdal;i:Inamed pageCountLnet/minecraft/block/entity/LecternBlockEntity;pageCount:I
-
-
Constructor Details
-
LecternBlockEntity
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_3722;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldal;<init>(Lgu;Ldby;)Vnamed <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 intermediary method_17520Lnet/minecraft/class_3722;method_17520()Lnet/minecraft/class_1799;official cLdal;c()Lcfx;named getBookLnet/minecraft/block/entity/LecternBlockEntity;getBook()Lnet/minecraft/item/ItemStack;
-
hasBook
public boolean hasBook()- Mappings:
Namespace Name Mixin selector intermediary method_17522Lnet/minecraft/class_3722;method_17522()Zofficial fLdal;f()Znamed hasBookLnet/minecraft/block/entity/LecternBlockEntity;hasBook()Z
-
setBook
- Mappings:
Namespace Name Mixin selector intermediary method_17513Lnet/minecraft/class_3722;method_17513(Lnet/minecraft/class_1799;)Vofficial aLdal;a(Lcfx;)Vnamed setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;)V
-
onBookRemoved
void onBookRemoved()- Mappings:
Namespace Name Mixin selector intermediary method_17525Lnet/minecraft/class_3722;method_17525()Vofficial jLdal;j()Vnamed onBookRemovedLnet/minecraft/block/entity/LecternBlockEntity;onBookRemoved()V
-
setBook
- Mappings:
Namespace Name Mixin selector intermediary method_17514Lnet/minecraft/class_3722;method_17514(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Vofficial aLdal;a(Lcfx;Lbym;)Vnamed setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
-
setCurrentPage
void setCurrentPage(int currentPage) - Mappings:
Namespace Name Mixin selector intermediary method_17511Lnet/minecraft/class_3722;method_17511(I)Vofficial aLdal;a(I)Vnamed setCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)V
-
getCurrentPage
public int getCurrentPage()- Mappings:
Namespace Name Mixin selector intermediary method_17523Lnet/minecraft/class_3722;method_17523()Iofficial gLdal;g()Inamed getCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()I
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector intermediary method_17524Lnet/minecraft/class_3722;method_17524()Iofficial iLdal;i()Inamed getComparatorOutputLnet/minecraft/block/entity/LecternBlockEntity;getComparatorOutput()I
-
resolveBook
- Mappings:
Namespace Name Mixin selector intermediary method_17518Lnet/minecraft/class_3722;method_17518(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;official bLdal;b(Lcfx;Lbym;)Lcfx;named resolveBookLnet/minecraft/block/entity/LecternBlockEntity;resolveBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
getCommandSource
- Mappings:
Namespace Name Mixin selector intermediary method_17512Lnet/minecraft/class_3722;method_17512(Lnet/minecraft/class_1657;)Lnet/minecraft/class_2168;official aLdal;a(Lbym;)Lds;named getCommandSourceLnet/minecraft/block/entity/LecternBlockEntity;getCommandSource(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/server/command/ServerCommandSource;
-
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:
copyItemDataRequiresOperatorin 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 intermediary method_11011Lnet/minecraft/class_2586;method_11011()Zofficial tLczk;t()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()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.
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 intermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vofficial aLczk;a(Lqr;)Vnamed readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)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 intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Vofficial bLczk;b(Lqr;)Vnamed writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
clear
public void clear() -
createMenu
- Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;official createMenuLcch;createMenu(ILbyl;Lbym;)Lcbd;named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-
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 intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;official G_Lbdz;G_()Lsw;named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-