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
-
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
ConstructorsConstructorDescriptionBasicInventoryContainer(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 TypeMethodDescriptionvoidvoidnet.minecraft.world.entity.player.InventoryvoidbooleanvoidsetDisabled(boolean disabled) Methods inherited from class com.hrznstudio.titanium.container.BasicContainer
addExtraSlots, getAssetProvider, quickMoveStack, stillValidMethods 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
-
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:
isDisabledin interfaceIDisableableContainer
-
setDisabled
public void setDisabled(boolean disabled) - Specified by:
setDisabledin interfaceIDisableableContainer
-