Class UpgradeContainer

java.lang.Object
net.minecraft.world.SimpleContainer
com.refinedmods.refinedstorage.common.upgrade.UpgradeContainer
All Implemented Interfaces:
UpgradeState, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible

public class UpgradeContainer extends net.minecraft.world.SimpleContainer implements UpgradeState
  • Constructor Details

  • Method Details

    • getMaxStackSize

      public int getMaxStackSize()
      Specified by:
      getMaxStackSize in interface net.minecraft.world.Container
    • canPlaceItem

      public boolean canPlaceItem(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      canPlaceItem in interface net.minecraft.world.Container
    • getAllowedUpgrades

      public Set<UpgradeMapping> getAllowedUpgrades()
    • getRegulatedAmount

      public OptionalLong getRegulatedAmount(ResourceKey resource)
    • getAmount

      public int getAmount(UpgradeItem upgradeItem)
      Specified by:
      getAmount in interface UpgradeState
    • getEnergyUsage

      public long getEnergyUsage()
    • getUpgradeItems

      public List<net.minecraft.world.item.Item> getUpgradeItems()
    • addUpgradeItem

      public boolean addUpgradeItem(net.minecraft.world.item.Item upgradeItem)