Class RedstoneProgrammerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.simibubi.create.foundation.gui.menu.MenuBase<RedstoneProgram>
com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
com.petrolpark.compat.create.common.redstone.programmer.RedstoneProgrammerMenu
- All Implemented Interfaces:
com.simibubi.create.foundation.gui.menu.IClearableMenu
public class RedstoneProgrammerMenu
extends com.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.simibubi.create.foundation.gui.menu.GhostItemMenu
ghostInventoryFields inherited from class com.simibubi.create.foundation.gui.menu.MenuBase
contentHolder, player, playerInventoryFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, containerListeners, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, remoteSlots, SLOT_CLICKED_OUTSIDE, slots -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram contentHolder) RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf buf) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSlots()protected booleanbooleancanDragTo(net.minecraft.world.inventory.Slot slotIn) voidclicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) static RedstoneProgrammerMenucreate(int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram program) protected net.neoforged.neoforge.items.ItemStackHandlerprotected RedstoneProgramcreateOnClient(net.minecraft.network.RegistryFriendlyByteBuf extraData) static intmaxSlots(RedstoneProgram program) static voidonPlayerTick(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post event) voidvoidrefreshSlots(int offset) protected voidsaveData(RedstoneProgram contentHolder) voidsync()Methods inherited from class com.simibubi.create.foundation.gui.menu.GhostItemMenu
canTakeItemForPickAll, clearContents, initAndReadInventory, moveItemStackTo, quickMoveStackMethods inherited from class com.simibubi.create.foundation.gui.menu.MenuBase
addPlayerSlots, createPlayerSlot, init, removed, stillValidMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, 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.menu.IClearableMenu
sendClearPacket
-
Field Details
-
SCREEN_ITEM_AREA_X
public static final int SCREEN_ITEM_AREA_X- See Also:
-
SCREEN_ITEM_AREA_Y
public static final int SCREEN_ITEM_AREA_Y- See Also:
-
SCREEN_ITEM_AREA_WIDTH
public static final int SCREEN_ITEM_AREA_WIDTH- See Also:
-
SCREEN_ITEM_AREA_HEIGHT
public static final int SCREEN_ITEM_AREA_HEIGHT- See Also:
-
SCREEN_DISTANCE_BETWEEN_CHANNELS
public static final int SCREEN_DISTANCE_BETWEEN_CHANNELS- See Also:
-
-
Constructor Details
-
RedstoneProgrammerMenu
public RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.RegistryFriendlyByteBuf buf) -
RedstoneProgrammerMenu
protected RedstoneProgrammerMenu(net.minecraft.world.inventory.MenuType<?> type, int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram contentHolder)
-
-
Method Details
-
create
public static RedstoneProgrammerMenu create(int id, net.minecraft.world.entity.player.Inventory inv, RedstoneProgram program) -
createOnClient
- Specified by:
createOnClientin classcom.simibubi.create.foundation.gui.menu.MenuBase<RedstoneProgram>
-
createGhostInventory
protected net.neoforged.neoforge.items.ItemStackHandler createGhostInventory()- Specified by:
createGhostInventoryin classcom.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
-
allowRepeats
protected boolean allowRepeats()- Specified by:
allowRepeatsin classcom.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
-
canDragTo
public boolean canDragTo(net.minecraft.world.inventory.Slot slotIn) - Overrides:
canDragToin classcom.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
-
addSlots
protected void addSlots()- Specified by:
addSlotsin classcom.simibubi.create.foundation.gui.menu.MenuBase<RedstoneProgram>
-
refreshSlots
public void refreshSlots() -
refreshSlots
public void refreshSlots(int offset) -
clicked
public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickTypeIn, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classcom.simibubi.create.foundation.gui.menu.GhostItemMenu<RedstoneProgram>
-
sync
public void sync() -
saveData
- Specified by:
saveDatain classcom.simibubi.create.foundation.gui.menu.MenuBase<RedstoneProgram>
-
maxSlots
-
onPlayerTick
public static void onPlayerTick(net.neoforged.neoforge.event.tick.PlayerTickEvent.Post event)
-