Class BatterySocketMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.hbm_m.inventory.menu.BatterySocketMenu
All Implemented Interfaces:
ILongEnergyMenu

public class BatterySocketMenu extends net.minecraft.world.inventory.AbstractContainerMenu implements ILongEnergyMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    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, slots
  • Constructor Summary

    Constructors
    Constructor
    Description
    BatterySocketMenu(int containerId, net.minecraft.world.entity.player.Inventory inv, BatterySocketBlockEntity be, net.minecraft.world.inventory.ContainerData data)
     
    BatterySocketMenu(int containerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     
    long
     
    int
     
    int
     
    int
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    void
    setEnergy(long energy, long maxEnergy, long delta)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BatterySocketMenu

      public BatterySocketMenu(int containerId, net.minecraft.world.entity.player.Inventory inv, BatterySocketBlockEntity be, net.minecraft.world.inventory.ContainerData data)
    • BatterySocketMenu

      public BatterySocketMenu(int containerId, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • setEnergy

      public void setEnergy(long energy, long maxEnergy, long delta)
      Specified by:
      setEnergy in interface ILongEnergyMenu
    • getEnergyStatic

      public long getEnergyStatic()
      Specified by:
      getEnergyStatic in interface ILongEnergyMenu
    • getMaxEnergyStatic

      public long getMaxEnergyStatic()
      Specified by:
      getMaxEnergyStatic in interface ILongEnergyMenu
    • getEnergyDeltaStatic

      public long getEnergyDeltaStatic()
      Specified by:
      getEnergyDeltaStatic in interface ILongEnergyMenu
    • getEnergyLong

      public long getEnergyLong()
    • getMaxEnergyLong

      public long getMaxEnergyLong()
    • getEnergyDelta

      public long getEnergyDelta()
    • getEnergy

      public long getEnergy()
    • getMaxEnergy

      public long getMaxEnergy()
    • getModeOnNoSignal

      public int getModeOnNoSignal()
    • getModeOnSignal

      public int getModeOnSignal()
    • getPriorityOrdinal

      public int getPriorityOrdinal()
    • broadcastChanges

      public void broadcastChanges()
      Overrides:
      broadcastChanges in class net.minecraft.world.inventory.AbstractContainerMenu
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu