Class AbstractSingleAmountContainerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
Direct Known Subclasses:
DetectorContainerMenu, RegulatorUpgradeContainerMenu

public abstract class AbstractSingleAmountContainerMenu extends AbstractResourceContainerMenu
  • Constructor Details

    • AbstractSingleAmountContainerMenu

      protected AbstractSingleAmountContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Inventory playerInventory, SingleAmountData singleAmountData, net.minecraft.network.chat.Component filterHelpText)
    • AbstractSingleAmountContainerMenu

      protected AbstractSingleAmountContainerMenu(net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player, ResourceContainer resourceContainer, net.minecraft.network.chat.Component filterHelpText, @Nullable SlotReference disabledSlotReference)
  • Method Details

    • getAmount

      public double getAmount()
    • changeAmountOnClient

      public void changeAmountOnClient(double newAmount)
    • changeAmountOnServer

      public abstract void changeAmountOnServer(double newAmount)