Class BasicAddonContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hrznstudio.titanium.container.BasicContainer
com.hrznstudio.titanium.container.impl.BasicInventoryContainer
com.hrznstudio.titanium.container.BasicAddonContainer
- All Implemented Interfaces:
IDisableableContainer,IObjectContainer,ILocatable
public class BasicAddonContainer
extends BasicInventoryContainer
implements IObjectContainer, ILocatable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic net.minecraft.world.inventory.MenuType<BasicAddonContainer>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
ConstructorsConstructorDescriptionBasicAddonContainer(Object provider, LocatorInstance locatorInstance, net.minecraft.world.inventory.ContainerLevelAccess worldPosCallable, net.minecraft.world.entity.player.Inventory playerInventory, int containerId) BasicAddonContainer(Object provider, LocatorInstance locatorInstance, net.minecraft.world.inventory.MenuType<?> containerType, net.minecraft.world.inventory.ContainerLevelAccess worldPosCallable, net.minecraft.world.entity.player.Inventory playerInventory, int containerId) -
Method Summary
Modifier and TypeMethodDescriptionvoidclicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) static BasicAddonContainercreate(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf packetBuffer) booleanstillValid(net.minecraft.world.entity.player.Player playerIn) voidupdate()Methods inherited from class com.hrznstudio.titanium.container.impl.BasicInventoryContainer
addHotbarSlots, addPlayerChestInventory, getPlayerInventory, initInventory, isDisabled, setDisabledMethods inherited from class com.hrznstudio.titanium.container.BasicContainer
addExtraSlots, getAssetProvider, quickMoveStackMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, 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
-
Field Details
-
TYPE
-
-
Constructor Details
-
BasicAddonContainer
public BasicAddonContainer(Object provider, LocatorInstance locatorInstance, net.minecraft.world.inventory.ContainerLevelAccess worldPosCallable, net.minecraft.world.entity.player.Inventory playerInventory, int containerId) -
BasicAddonContainer
public BasicAddonContainer(Object provider, LocatorInstance locatorInstance, net.minecraft.world.inventory.MenuType<?> containerType, net.minecraft.world.inventory.ContainerLevelAccess worldPosCallable, net.minecraft.world.entity.player.Inventory playerInventory, int containerId)
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player playerIn) - Overrides:
stillValidin classBasicContainer
-
clicked
public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
create
public static BasicAddonContainer create(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf packetBuffer) -
getProvider
-
getObject
- Specified by:
getObjectin interfaceIObjectContainer
-
getLocatorInstance
- Specified by:
getLocatorInstancein interfaceILocatable
-
update
public void update()
-