Package com.hbm_m.inventory.menu
Class MachineBatteryMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hbm_m.inventory.menu.MachineBatteryMenu
- All Implemented Interfaces:
ILongEnergyMenu
public class MachineBatteryMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
implements ILongEnergyMenu
-
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
ConstructorsConstructorDescriptionMachineBatteryMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData) MachineBatteryMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data) -
Method Summary
Modifier and TypeMethodDescriptionvoidlonglonglonglonglonglonglonglongintintintnet.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player playerIn, int index) voidsetEnergy(long energy, long maxEnergy, long delta) booleanstillValid(net.minecraft.world.entity.player.Player pPlayer) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, 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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
blockEntity
-
-
Constructor Details
-
MachineBatteryMenu
public MachineBatteryMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.level.block.entity.BlockEntity entity, net.minecraft.world.inventory.ContainerData data) -
MachineBatteryMenu
public MachineBatteryMenu(int pContainerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf extraData)
-
-
Method Details
-
setEnergy
public void setEnergy(long energy, long maxEnergy, long delta) - Specified by:
setEnergyin interfaceILongEnergyMenu
-
getEnergyStatic
public long getEnergyStatic()- Specified by:
getEnergyStaticin interfaceILongEnergyMenu
-
getMaxEnergyStatic
public long getMaxEnergyStatic()- Specified by:
getMaxEnergyStaticin interfaceILongEnergyMenu
-
getEnergyDeltaStatic
public long getEnergyDeltaStatic()- Specified by:
getEnergyDeltaStaticin interfaceILongEnergyMenu
-
getEnergyLong
public long getEnergyLong() -
getMaxEnergyLong
public long getMaxEnergyLong() -
getEnergy
public long getEnergy() -
getMaxEnergy
public long getMaxEnergy() -
getEnergyDelta
public long getEnergyDelta() -
getModeOnNoSignal
public int getModeOnNoSignal() -
getModeOnSignal
public int getModeOnSignal() -
getPriorityOrdinal
public int getPriorityOrdinal() -
broadcastChanges
public void broadcastChanges()- Overrides:
broadcastChangesin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player playerIn, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-