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

    • getTicker

      public NetworkNodeTicker getTicker()
    • 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()
    • getUpgrades

      public List<net.minecraft.world.item.ItemStack> getUpgrades()
    • addUpgrade

      public boolean addUpgrade(net.minecraft.world.item.ItemStack upgrade)
    • getDrops

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getDrops()