Class LoomContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.LoomContainer
-
public class LoomContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
private Slot
bannerSlot
private Slot
dyeSlot
private IInventory
inputContainer
private long
lastSoundTime
private IInventory
outputContainer
private Slot
patternSlot
private Slot
resultSlot
private IntReferenceHolder
selectedBannerPatternIndex
private java.lang.Runnable
slotUpdateListener
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description LoomContainer(int p_i50073_1_, PlayerInventory p_i50073_2_)
LoomContainer(int p_i50074_1_, PlayerInventory p_i50074_2_, IWorldPosCallable p_i50074_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
Slot
getBannerSlot()
Slot
getDyeSlot()
Slot
getPatternSlot()
Slot
getResultSlot()
int
getSelectedBannerPatternIndex()
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
registerUpdateListener(java.lang.Runnable p_217020_1_)
void
removed(PlayerEntity p_75134_1_)
private void
setupResultSlot()
void
slotsChanged(IInventory p_75130_1_)
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, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
-
-
-
Field Detail
-
access
private final IWorldPosCallable access
-
selectedBannerPatternIndex
private final IntReferenceHolder selectedBannerPatternIndex
-
slotUpdateListener
private java.lang.Runnable slotUpdateListener
-
bannerSlot
private final Slot bannerSlot
-
dyeSlot
private final Slot dyeSlot
-
patternSlot
private final Slot patternSlot
-
resultSlot
private final Slot resultSlot
-
lastSoundTime
private long lastSoundTime
-
inputContainer
private final IInventory inputContainer
-
outputContainer
private final IInventory outputContainer
-
-
Constructor Detail
-
LoomContainer
public LoomContainer(int p_i50073_1_, PlayerInventory p_i50073_2_)
-
LoomContainer
public LoomContainer(int p_i50074_1_, PlayerInventory p_i50074_2_, IWorldPosCallable p_i50074_3_)
-
-
Method Detail
-
getSelectedBannerPatternIndex
public int getSelectedBannerPatternIndex()
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
clickMenuButton
public boolean clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
- Overrides:
clickMenuButton
in classContainer
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
registerUpdateListener
public void registerUpdateListener(java.lang.Runnable p_217020_1_)
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
setupResultSlot
private void setupResultSlot()
-
getBannerSlot
public Slot getBannerSlot()
-
getDyeSlot
public Slot getDyeSlot()
-
getPatternSlot
public Slot getPatternSlot()
-
getResultSlot
public Slot getResultSlot()
-
-