Class BrickHopperContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
de.cech12.brickhopper.inventory.BrickHopperContainer
public class BrickHopperContainer
extends net.minecraft.world.inventory.AbstractContainerMenu
-
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, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionBrickHopperContainer(int id, net.minecraft.world.entity.player.Inventory playerInventoryIn) BrickHopperContainer(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player playerIn, int index) Handle when the stack in slotindexis shift-clicked.voidremoved(@NotNull net.minecraft.world.entity.player.Player playerIn) Called when the container is closed.booleanstillValid(@NotNull net.minecraft.world.entity.player.Player playerIn) Determines whether supplied player can use this containerMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Constructor Details
-
BrickHopperContainer
public BrickHopperContainer(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container inventory) -
BrickHopperContainer
public BrickHopperContainer(int id, net.minecraft.world.entity.player.Inventory playerInventoryIn)
-
-
Method Details
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player playerIn) Determines whether supplied player can use this container- Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player playerIn, int index) Handle when the stack in slotindexis shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(@NotNull @NotNull net.minecraft.world.entity.player.Player playerIn) Called when the container is closed.- Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-