Class LoomContainer

java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.LoomContainer

public class LoomContainer extends Container
  • Field Details

    • access

      private final IWorldPosCallable access
    • selectedBannerPatternIndex

      private final IntReferenceHolder selectedBannerPatternIndex
    • slotUpdateListener

      private 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 Details

  • Method Details

    • getSelectedBannerPatternIndex

      public int getSelectedBannerPatternIndex()
    • stillValid

      public boolean stillValid(PlayerEntity p_75145_1_)
      Specified by:
      stillValid in class Container
    • clickMenuButton

      public boolean clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
      Overrides:
      clickMenuButton in class Container
    • slotsChanged

      public void slotsChanged(IInventory p_75130_1_)
      Overrides:
      slotsChanged in class Container
    • registerUpdateListener

      public void registerUpdateListener(Runnable p_217020_1_)
    • quickMoveStack

      public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
      Overrides:
      quickMoveStack in class Container
    • removed

      public void removed(PlayerEntity p_75134_1_)
      Overrides:
      removed in class Container
    • setupResultSlot

      private void setupResultSlot()
    • getBannerSlot

      public Slot getBannerSlot()
    • getDyeSlot

      public Slot getDyeSlot()
    • getPatternSlot

      public Slot getPatternSlot()
    • getResultSlot

      public Slot getResultSlot()