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
public class LecternBlockEntity extends BlockEntity implements Clearable, NamedScreenHandlerFactory
- Mappings:
Namespace Name official cgmintermediary net/minecraft/class_3722named net/minecraft/block/entity/LecternBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private ItemStackbookprivate intcurrentPageprivate Inventoryinventoryprivate intpageCountprivate PropertyDelegatepropertyDelegateFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description LecternBlockEntity(BlockPos pos, BlockState state) -
Method Summary
Modifier and Type Method Description voidclear()booleancopyItemDataRequiresOperator()ScreenHandlercreateMenu(int syncId, PlayerInventory inv, PlayerEntity player)voidfromTag(CompoundTag tag)ItemStackgetBook()private ServerCommandSourcegetCommandSource(PlayerEntity player)intgetComparatorOutput()intgetCurrentPage()TextgetDisplayName()Returns the title of this screen handler; will be a part of the open screen packet sent to the client.booleanhasBook()private voidonBookRemoved()private ItemStackresolveBook(ItemStack book, PlayerEntity player)voidsetBook(ItemStack book)voidsetBook(ItemStack book, PlayerEntity player)private voidsetCurrentPage(int currentPage)CompoundTagtoTag(CompoundTag tag)Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toUpdatePacket
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLcgm;a:Lapj;intermediary field_17386Lnet/minecraft/class_3722;field_17386:Lnet/minecraft/class_1263;named inventoryLnet/minecraft/block/entity/LecternBlockEntity;inventory:Lnet/minecraft/inventory/Inventory;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official bLcgm;b:Lbkb;intermediary field_17387Lnet/minecraft/class_3722;field_17387:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/block/entity/LecternBlockEntity;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
book
- Mappings:
Namespace Name Mixin selector official cLcgm;c:Lbnv;intermediary field_17388Lnet/minecraft/class_3722;field_17388:Lnet/minecraft/class_1799;named bookLnet/minecraft/block/entity/LecternBlockEntity;book:Lnet/minecraft/item/ItemStack;
-
currentPage
private int currentPage- Mappings:
Namespace Name Mixin selector official gLcgm;g:Iintermediary field_17389Lnet/minecraft/class_3722;field_17389:Inamed currentPageLnet/minecraft/block/entity/LecternBlockEntity;currentPage:I
-
pageCount
private int pageCount- Mappings:
Namespace Name Mixin selector official hLcgm;h:Iintermediary field_17390Lnet/minecraft/class_3722;field_17390:Inamed pageCountLnet/minecraft/block/entity/LecternBlockEntity;pageCount:I
-
-
Constructor Details
-
LecternBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>Lcgm;<init>(Lfx;Lcht;)Vintermediary <init>Lnet/minecraft/class_3722;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)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 official fLcgm;f()Lbnv;intermediary method_17520Lnet/minecraft/class_3722;method_17520()Lnet/minecraft/class_1799;named getBookLnet/minecraft/block/entity/LecternBlockEntity;getBook()Lnet/minecraft/item/ItemStack;
-
hasBook
public boolean hasBook()- Mappings:
Namespace Name Mixin selector official hLcgm;h()Zintermediary method_17522Lnet/minecraft/class_3722;method_17522()Znamed hasBookLnet/minecraft/block/entity/LecternBlockEntity;hasBook()Z
-
setBook
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lbnv;)Vintermediary method_17513Lnet/minecraft/class_3722;method_17513(Lnet/minecraft/class_1799;)Vnamed setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;)V
-
onBookRemoved
private void onBookRemoved()- Mappings:
Namespace Name Mixin selector official kLcgm;k()Vintermediary method_17525Lnet/minecraft/class_3722;method_17525()Vnamed onBookRemovedLnet/minecraft/block/entity/LecternBlockEntity;onBookRemoved()V
-
setBook
- Mappings:
Namespace Name Mixin selector official aLcgm;a(Lbnv;Lbhl;)Vintermediary method_17514Lnet/minecraft/class_3722;method_17514(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Vnamed setBookLnet/minecraft/block/entity/LecternBlockEntity;setBook(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)V
-
setCurrentPage
private void setCurrentPage(int currentPage)- Mappings:
Namespace Name Mixin selector official aLcgm;a(I)Vintermediary method_17511Lnet/minecraft/class_3722;method_17511(I)Vnamed setCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)V
-
getCurrentPage
public int getCurrentPage()- Mappings:
Namespace Name Mixin selector official iLcgm;i()Iintermediary method_17523Lnet/minecraft/class_3722;method_17523()Inamed getCurrentPageLnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()I
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector official jLcgm;j()Iintermediary method_17524Lnet/minecraft/class_3722;method_17524()Inamed getComparatorOutputLnet/minecraft/block/entity/LecternBlockEntity;getComparatorOutput()I
-
resolveBook
- Mappings:
Namespace Name Mixin selector official bLcgm;b(Lbnv;Lbhl;)Lbnv;intermediary method_17518Lnet/minecraft/class_3722;method_17518(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1799;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 official aLcgm;a(Lbhl;)Ldb;intermediary method_17512Lnet/minecraft/class_3722;method_17512(Lnet/minecraft/class_1657;)Lnet/minecraft/class_2168;named getCommandSourceLnet/minecraft/block/entity/LecternBlockEntity;getCommandSource(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/server/command/ServerCommandSource;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperatorin classBlockEntity- Mappings:
Namespace Name Mixin selector official rLcfr;r()Zintermediary method_11011Lnet/minecraft/class_2586;method_11011()Znamed copyItemDataRequiresOperatorLnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
fromTag
- Overrides:
fromTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official aLcfr;a(Lmq;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)Vnamed fromTagLnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTagin classBlockEntity- Mappings:
Namespace Name Mixin selector official bLcfr;b(Lmq;)Lmq;intermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named toTagLnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
clear
public void clear() -
createMenu
- Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official createMenuLbkt;createMenu(ILbhk;Lbhl;)Lbjr;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;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 official dLapt;d()Loi;intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-