Class ScheduleContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.container.ContainerBase<T>
com.simibubi.create.foundation.gui.container.GhostItemContainer<net.minecraft.world.item.ItemStack>
com.simibubi.create.content.logistics.trains.management.schedule.ScheduleContainer
- All Implemented Interfaces:
IClearableContainer
-
Field Summary
FieldsFields inherited from class com.simibubi.create.foundation.gui.container.GhostItemContainer
ghostInventoryFields inherited from class com.simibubi.create.foundation.gui.container.ContainerBase
contentHolder, player, playerInventoryFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionScheduleContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) ScheduleContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack contentHolder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPlayerSlots(int x, int y) protected voidaddSlots()protected booleanvoidclicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) protected net.minecraftforge.items.ItemStackHandlerprotected net.minecraft.world.item.ItemStackcreateOnClient(net.minecraft.network.FriendlyByteBuf extraData) protected voidsaveData(net.minecraft.world.item.ItemStack contentHolder) booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from class com.simibubi.create.foundation.gui.container.GhostItemContainer
canDragTo, canTakeItemForPickAll, clearContents, initAndReadInventory, quickMoveStackMethods inherited from class com.simibubi.create.foundation.gui.container.ContainerBase
init, removedMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.simibubi.create.foundation.gui.container.IClearableContainer
sendClearPacket
-
Field Details
-
slotsActive
public boolean slotsActive -
targetSlotsActive
public int targetSlotsActive
-
-
Constructor Details
-
ScheduleContainer
public ScheduleContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) -
ScheduleContainer
public ScheduleContainer(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.item.ItemStack contentHolder)
-
-
Method Details
-
createGhostInventory
protected net.minecraftforge.items.ItemStackHandler createGhostInventory()- Specified by:
createGhostInventoryin classGhostItemContainer<net.minecraft.world.item.ItemStack>
-
clicked
public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classGhostItemContainer<net.minecraft.world.item.ItemStack>
-
allowRepeats
protected boolean allowRepeats()- Specified by:
allowRepeatsin classGhostItemContainer<net.minecraft.world.item.ItemStack>
-
createOnClient
protected net.minecraft.world.item.ItemStack createOnClient(net.minecraft.network.FriendlyByteBuf extraData) - Specified by:
createOnClientin classContainerBase<net.minecraft.world.item.ItemStack>
-
addSlots
protected void addSlots()- Specified by:
addSlotsin classContainerBase<net.minecraft.world.item.ItemStack>
-
addPlayerSlots
protected void addPlayerSlots(int x, int y) - Overrides:
addPlayerSlotsin classContainerBase<net.minecraft.world.item.ItemStack>
-
saveData
protected void saveData(net.minecraft.world.item.ItemStack contentHolder) - Specified by:
saveDatain classContainerBase<net.minecraft.world.item.ItemStack>
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Overrides:
stillValidin classContainerBase<net.minecraft.world.item.ItemStack>
-