Class Container

    • Field Detail

      • slots

        public final java.util.List<Slot> slots
      • containerId

        public final int containerId
      • changeUid

        private short changeUid
      • quickcraftType

        private int quickcraftType
      • quickcraftStatus

        private int quickcraftStatus
      • quickcraftSlots

        private final java.util.Set<Slot> quickcraftSlots
      • unSynchedPlayers

        private final java.util.Set<PlayerEntity> unSynchedPlayers
    • Constructor Detail

      • Container

        protected Container​(@Nullable
                            ContainerType<?> p_i50105_1_,
                            int p_i50105_2_)
    • Method Detail

      • checkContainerSize

        protected static void checkContainerSize​(IInventory p_216962_0_,
                                                 int p_216962_1_)
      • checkContainerDataCount

        protected static void checkContainerDataCount​(IIntArray p_216959_0_,
                                                      int p_216959_1_)
      • addSlot

        protected Slot addSlot​(Slot p_75146_1_)
      • addDataSlots

        protected void addDataSlots​(IIntArray p_216961_1_)
      • broadcastChanges

        public void broadcastChanges()
      • clickMenuButton

        public boolean clickMenuButton​(PlayerEntity p_75140_1_,
                                       int p_75140_2_)
      • getSlot

        public Slot getSlot​(int p_75139_1_)
      • consideredTheSameItem

        public static boolean consideredTheSameItem​(ItemStack p_195929_0_,
                                                    ItemStack p_195929_1_)
      • canTakeItemForPickAll

        public boolean canTakeItemForPickAll​(ItemStack p_94530_1_,
                                             Slot p_94530_2_)
      • removed

        public void removed​(PlayerEntity p_75134_1_)
      • slotsChanged

        public void slotsChanged​(IInventory p_75130_1_)
      • setItem

        public void setItem​(int p_75141_1_,
                            ItemStack p_75141_2_)
      • setAll

        public void setAll​(java.util.List<ItemStack> p_190896_1_)
      • setData

        public void setData​(int p_75137_1_,
                            int p_75137_2_)
      • isSynched

        public boolean isSynched​(PlayerEntity p_75129_1_)
      • setSynched

        public void setSynched​(PlayerEntity p_75128_1_,
                               boolean p_75128_2_)
      • stillValid

        public abstract boolean stillValid​(PlayerEntity p_75145_1_)
      • moveItemStackTo

        protected boolean moveItemStackTo​(ItemStack p_75135_1_,
                                          int p_75135_2_,
                                          int p_75135_3_,
                                          boolean p_75135_4_)
      • getQuickcraftType

        public static int getQuickcraftType​(int p_94529_0_)
      • getQuickcraftHeader

        public static int getQuickcraftHeader​(int p_94532_0_)
      • getQuickcraftMask

        public static int getQuickcraftMask​(int p_94534_0_,
                                            int p_94534_1_)
      • isValidQuickcraftType

        public static boolean isValidQuickcraftType​(int p_180610_0_,
                                                    PlayerEntity p_180610_1_)
      • resetQuickCraft

        protected void resetQuickCraft()
      • canItemQuickReplace

        public static boolean canItemQuickReplace​(@Nullable
                                                  Slot p_94527_0_,
                                                  ItemStack p_94527_1_,
                                                  boolean p_94527_2_)
      • getQuickCraftSlotCount

        public static void getQuickCraftSlotCount​(java.util.Set<Slot> p_94525_0_,
                                                  int p_94525_1_,
                                                  ItemStack p_94525_2_,
                                                  int p_94525_3_)
      • canDragTo

        public boolean canDragTo​(Slot p_94531_1_)
      • getRedstoneSignalFromBlockEntity

        public static int getRedstoneSignalFromBlockEntity​(@Nullable
                                                           TileEntity p_178144_0_)
      • getRedstoneSignalFromContainer

        public static int getRedstoneSignalFromContainer​(@Nullable
                                                         IInventory p_94526_0_)