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 cik
intermediary net/minecraft/class_3722
named net/minecraft/block/entity/LecternBlockEntity
-
Field Summary
Fields Modifier and Type Field Description private ItemStack
book
private int
currentPage
static int
field_31348
static int
field_31349
static int
field_31350
static int
field_31351
private Inventory
inventory
private int
pageCount
private PropertyDelegate
propertyDelegate
Fields 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 void
clear()
boolean
copyItemDataRequiresOperator()
ScreenHandler
createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
ItemStack
getBook()
private ServerCommandSource
getCommandSource(@Nullable PlayerEntity player)
int
getComparatorOutput()
int
getCurrentPage()
Text
getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.boolean
hasBook()
private void
onBookRemoved()
void
readNbt(NbtCompound nbt)
private ItemStack
resolveBook(ItemStack book, @Nullable PlayerEntity player)
void
setBook(ItemStack book)
void
setBook(ItemStack book, @Nullable PlayerEntity player)
private void
setCurrentPage(int currentPage)
NbtCompound
writeNbt(NbtCompound nbt)
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createFromNbt, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataNbt, toUpdatePacket
-
Field Details
-
field_31348
public static final int field_31348- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lcik;a:I
intermediary field_31348
Lnet/minecraft/class_3722;field_31348:I
named field_31348
Lnet/minecraft/block/entity/LecternBlockEntity;field_31348:I
-
field_31349
public static final int field_31349- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official b
Lcik;b:I
intermediary field_31349
Lnet/minecraft/class_3722;field_31349:I
named field_31349
Lnet/minecraft/block/entity/LecternBlockEntity;field_31349:I
-
field_31350
public static final int field_31350- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Lcik;c:I
intermediary field_31350
Lnet/minecraft/class_3722;field_31350:I
named field_31350
Lnet/minecraft/block/entity/LecternBlockEntity;field_31350:I
-
field_31351
public static final int field_31351- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lcik;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
Lcik;e:Laqz;
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
Lcik;f:Lblv;
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;
-
book
- Mappings:
Namespace Name Mixin selector official g
Lcik;g:Lbpr;
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;
-
currentPage
private int currentPage- Mappings:
Namespace Name Mixin selector official h
Lcik;h:I
intermediary field_17389
Lnet/minecraft/class_3722;field_17389:I
named currentPage
Lnet/minecraft/block/entity/LecternBlockEntity;currentPage:I
-
pageCount
private int pageCount- Mappings:
Namespace Name Mixin selector official i
Lcik;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>
Lcik;<init>(Lgb;Lcjr;)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 f
Lcik;f()Lbpr;
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;
-
hasBook
public boolean hasBook()- Mappings:
Namespace Name Mixin selector official g
Lcik;g()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
Lcik;a(Lbpr;)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
-
onBookRemoved
private void onBookRemoved()- Mappings:
Namespace Name Mixin selector official j
Lcik;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
Lcik;a(Lbpr;Lbjf;)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
-
setCurrentPage
private void setCurrentPage(int currentPage)- Mappings:
Namespace Name Mixin selector official a
Lcik;a(I)V
intermediary method_17511
Lnet/minecraft/class_3722;method_17511(I)V
named setCurrentPage
Lnet/minecraft/block/entity/LecternBlockEntity;setCurrentPage(I)V
-
getCurrentPage
public int getCurrentPage()- Mappings:
Namespace Name Mixin selector official h
Lcik;h()I
intermediary method_17523
Lnet/minecraft/class_3722;method_17523()I
named getCurrentPage
Lnet/minecraft/block/entity/LecternBlockEntity;getCurrentPage()I
-
getComparatorOutput
public int getComparatorOutput()- Mappings:
Namespace Name Mixin selector official i
Lcik;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
Lcik;b(Lbpr;Lbjf;)Lbpr;
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
Lcik;a(Lbjf;)Ldg;
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;
-
copyItemDataRequiresOperator
public boolean copyItemDataRequiresOperator()- Overrides:
copyItemDataRequiresOperator
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official q
Lchp;q()Z
intermediary method_11011
Lnet/minecraft/class_2586;method_11011()Z
named copyItemDataRequiresOperator
Lnet/minecraft/block/entity/BlockEntity;copyItemDataRequiresOperator()Z
-
readNbt
- Overrides:
readNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lchp;a(Lmv;)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
-
writeNbt
- Overrides:
writeNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lchp;b(Lmv;)Lmv;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
clear
public void clear() -
createMenu
- Specified by:
createMenu
in interfaceScreenHandlerFactory
- Mappings:
Namespace Name Mixin selector official createMenu
Lbmo;createMenu(ILbje;Lbjf;)Lbll;
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;
-
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 official d
Larj;d()Lon;
intermediary method_5476
Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
named getDisplayName
Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-