Class LecternContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.LecternContainer
-
public class LecternContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IInventory
lectern
private IIntArray
lecternData
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description LecternContainer(int p_i50075_1_)
LecternContainer(int p_i50076_1_, IInventory p_i50076_2_, IIntArray p_i50076_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
ItemStack
getBook()
int
getPage()
void
setData(int p_75137_1_, int p_75137_2_)
boolean
stillValid(PlayerEntity p_75145_1_)
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, quickMoveStack, removed, removeSlotListener, resetQuickCraft, setAll, setItem, setSynched, slotsChanged, stillValid
-
-
-
-
Field Detail
-
lectern
private final IInventory lectern
-
lecternData
private final IIntArray lecternData
-
-
Constructor Detail
-
LecternContainer
public LecternContainer(int p_i50075_1_)
-
LecternContainer
public LecternContainer(int p_i50076_1_, IInventory p_i50076_2_, IIntArray p_i50076_3_)
-
-
Method Detail
-
clickMenuButton
public boolean clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
- Overrides:
clickMenuButton
in classContainer
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
getBook
public ItemStack getBook()
-
getPage
public int getPage()
-
-