Class EnergyItemHelperImpl

java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.EnergyItemHelperImpl
All Implemented Interfaces:
EnergyItemHelper

public class EnergyItemHelperImpl extends Object implements EnergyItemHelper
  • Constructor Details

    • EnergyItemHelperImpl

      public EnergyItemHelperImpl()
  • Method Details

    • addTooltip

      public void addTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines)
      Specified by:
      addTooltip in interface EnergyItemHelper
    • isBarVisible

      public boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
      Specified by:
      isBarVisible in interface EnergyItemHelper
    • getBarWidth

      public int getBarWidth(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getBarWidth in interface EnergyItemHelper
    • getBarColor

      public int getBarColor(net.minecraft.world.item.ItemStack stack)
      Specified by:
      getBarColor in interface EnergyItemHelper
    • createAtEnergyCapacity

      public net.minecraft.world.item.ItemStack createAtEnergyCapacity(net.minecraft.world.item.Item item)
      Specified by:
      createAtEnergyCapacity in interface EnergyItemHelper
    • passEnergyToBlockEntity

      public void passEnergyToBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
      Specified by:
      passEnergyToBlockEntity in interface EnergyItemHelper