Class BasicInventoryContainer

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hrznstudio.titanium.container.BasicContainer
com.hrznstudio.titanium.container.impl.BasicInventoryContainer
All Implemented Interfaces:
IDisableableContainer
Direct Known Subclasses:
BasicAddonContainer

public class BasicInventoryContainer extends BasicContainer implements IDisableableContainer
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicInventoryContainer(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buffer)
     
    BasicInventoryContainer(net.minecraft.world.inventory.MenuType<BasicAddonContainer> type, net.minecraft.world.entity.player.Inventory inventory, int id, IAssetProvider assetProvider)
     
    BasicInventoryContainer(net.minecraft.world.inventory.MenuType type, net.minecraft.world.entity.player.Inventory inventory, int id)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    net.minecraft.world.entity.player.Inventory
     
    void
     
    boolean
     
    void
    setDisabled(boolean disabled)
     

    Methods inherited from class com.hrznstudio.titanium.container.BasicContainer

    addExtraSlots, getAssetProvider, quickMoveStack, stillValid

    Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu

    addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BasicInventoryContainer

      public BasicInventoryContainer(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buffer)
    • BasicInventoryContainer

      public BasicInventoryContainer(net.minecraft.world.inventory.MenuType type, net.minecraft.world.entity.player.Inventory inventory, int id)
    • BasicInventoryContainer

      public BasicInventoryContainer(net.minecraft.world.inventory.MenuType<BasicAddonContainer> type, net.minecraft.world.entity.player.Inventory inventory, int id, IAssetProvider assetProvider)
  • Method Details

    • initInventory

      public void initInventory()
    • addPlayerChestInventory

      public void addPlayerChestInventory()
    • addHotbarSlots

      public void addHotbarSlots()
    • getPlayerInventory

      public net.minecraft.world.entity.player.Inventory getPlayerInventory()
    • isDisabled

      public boolean isDisabled()
      Specified by:
      isDisabled in interface IDisableableContainer
    • setDisabled

      public void setDisabled(boolean disabled)
      Specified by:
      setDisabled in interface IDisableableContainer