Interface EnergyItemHelper

All Known Implementing Classes:
EnergyItemHelperImpl

@API(status=STABLE, since="2.0.0-milestone.3.1") public interface EnergyItemHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines)
     
    net.minecraft.world.item.ItemStack
    createAtEnergyCapacity(net.minecraft.world.item.Item item)
     
    int
    getBarColor(net.minecraft.world.item.ItemStack stack)
     
    int
    getBarWidth(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack)
     
    void
    passEnergyToBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)
     
  • Method Details

    • addTooltip

      void addTooltip(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines)
    • isBarVisible

      boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
    • getBarWidth

      int getBarWidth(net.minecraft.world.item.ItemStack stack)
    • getBarColor

      int getBarColor(net.minecraft.world.item.ItemStack stack)
    • createAtEnergyCapacity

      net.minecraft.world.item.ItemStack createAtEnergyCapacity(net.minecraft.world.item.Item item)
    • passEnergyToBlockEntity

      void passEnergyToBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack stack)