Package net.minecraft.tileentity
Class LecternTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
net.minecraft.tileentity.TileEntity
net.minecraft.tileentity.LecternTileEntity
- All Implemented Interfaces:
IContainerProvider
,INamedContainerProvider
,IClearable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
-
Field Summary
Modifier and TypeFieldDescriptionprivate ItemStack
private final IInventory
private final IIntArray
private int
private int
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private CommandSource
createCommandSourceStack
(PlayerEntity p_214039_1_) createMenu
(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) getBook()
int
getPage()
int
boolean
hasBook()
void
load
(BlockState p_230337_1_, CompoundNBT p_230337_2_) private void
boolean
private ItemStack
resolveBook
(ItemStack p_214047_1_, PlayerEntity p_214047_2_) save
(CompoundNBT p_189515_1_) void
void
setBook
(ItemStack p_214040_1_, PlayerEntity p_214040_2_) private void
setPage
(int p_214035_1_) Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
Field Details
-
bookAccess
-
dataAccess
-
book
-
page
private int page -
pageCount
private int pageCount
-
-
Constructor Details
-
LecternTileEntity
public LecternTileEntity()
-
-
Method Details
-
getBook
-
hasBook
public boolean hasBook() -
setBook
-
onBookItemRemove
private void onBookItemRemove() -
setBook
-
setPage
private void setPage(int p_214035_1_) -
getPage
public int getPage() -
getRedstoneSignal
public int getRedstoneSignal() -
resolveBook
-
createCommandSourceStack
-
onlyOpCanSetNbt
public boolean onlyOpCanSetNbt()- Overrides:
onlyOpCanSetNbt
in classTileEntity
-
load
- Overrides:
load
in classTileEntity
-
save
- Overrides:
save
in classTileEntity
-
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceIClearable
-
createMenu
public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) - Specified by:
createMenu
in interfaceIContainerProvider
-
getDisplayName
- Specified by:
getDisplayName
in interfaceINamedContainerProvider
-