Class AbstractPneumaticCraftMenu<T extends AbstractPneumaticCraftBlockEntity>
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
me.desht.pneumaticcraft.common.inventory.AbstractPneumaticCraftMenu<T>
- All Implemented Interfaces:
IGUIButtonSensitive
- Direct Known Subclasses:
Abstract4SlotMenu,AirCannonMenu,AirCompressorMenu,AmadronAddTradeMenu,AmadronMenu,AssemblyControllerMenu,ChargingStationMenu,ChargingStationUpgradeManagerMenu,CreativeCompressedIronBlockMenu,CreativeCompressorMenu,ElevatorMenu,EtchingTankMenu,FluidMixerMenu,FluidTankMenu,GasLiftMenu,JackhammerSetupMenu,KeroseneLampMenu,LiquidCompressorMenu,LiquidHopperMenu,LogisticsMenu,MinigunMagazineMenu,OmnidirectionalHopperMenu,PneumaticDoorBaseMenu,PressureChamberInterfaceMenu,PressureChamberValveMenu,PressurizedSpawnerMenu,ProgrammableControllerMenu,ProgrammerMenu,RefineryMenu,ReinforcedChestMenu,RemoteMenu,SecurityStationHackingMenu,SecurityStationMainMenu,SentryTurretMenu,SmartChestMenu,SolarCompressorMenu,SpawnerExtractorMenu,TagWorkbenchMenu,ThermalCompressorMenu,ThermopneumaticProcessingPlantMenu,UniversalSensorMenu,UVLightBoxMenu,VacuumPumpMenu,VacuumTrapMenu
public abstract class AbstractPneumaticCraftMenu<T extends AbstractPneumaticCraftBlockEntity>
extends net.minecraft.world.inventory.AbstractContainerMenu
implements IGUIButtonSensitive
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionAbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer) AbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer, net.minecraft.core.BlockPos tilePos) AbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer, net.minecraft.network.FriendlyByteBuf extraData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPlayerSlots(net.minecraft.world.entity.player.Inventory inventoryPlayer, int yOffset) protected voidaddPlayerSlots(net.minecraft.world.entity.player.Inventory inventoryPlayer, int xOffset, int yOffset) protected voidaddUpgradeSlots(int xBase, int yBase) voidvoidclicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) voidhandleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) protected booleanmoveItemStackTo(net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) static voidputHand(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.world.InteractionHand hand) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int slot) booleanstillValid(net.minecraft.world.entity.player.Player player) voidupdateField(int index, Object value) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
te
-
-
Constructor Details
-
AbstractPneumaticCraftMenu
public AbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer, net.minecraft.network.FriendlyByteBuf extraData) -
AbstractPneumaticCraftMenu
public AbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer) -
AbstractPneumaticCraftMenu
public AbstractPneumaticCraftMenu(net.minecraft.world.inventory.MenuType type, int windowId, net.minecraft.world.entity.player.Inventory invPlayer, net.minecraft.core.BlockPos tilePos)
-
-
Method Details
-
putHand
public static void putHand(net.minecraft.network.FriendlyByteBuf buf, net.minecraft.world.InteractionHand hand) -
updateField
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
broadcastChanges
public void broadcastChanges()- Overrides:
broadcastChangesin classnet.minecraft.world.inventory.AbstractContainerMenu
-
addPlayerSlots
protected void addPlayerSlots(net.minecraft.world.entity.player.Inventory inventoryPlayer, int yOffset) -
addPlayerSlots
protected void addPlayerSlots(net.minecraft.world.entity.player.Inventory inventoryPlayer, int xOffset, int yOffset) -
addUpgradeSlots
protected void addUpgradeSlots(int xBase, int yBase) -
quickMoveStack
@Nonnull public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int slot) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
moveItemStackTo
protected boolean moveItemStackTo(net.minecraft.world.item.ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) - Overrides:
moveItemStackToin classnet.minecraft.world.inventory.AbstractContainerMenu
-
clicked
public void clicked(int slotId, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player player) - Overrides:
clickedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
handleGUIButtonPress
public void handleGUIButtonPress(String tag, boolean shiftHeld, net.minecraft.server.level.ServerPlayer player) - Specified by:
handleGUIButtonPressin interfaceIGUIButtonSensitive
-