Class EnergyItemHelperImpl
java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.EnergyItemHelperImpl
- All Implemented Interfaces:
EnergyItemHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
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 interfaceEnergyItemHelper
-
isBarVisible
public boolean isBarVisible(net.minecraft.world.item.ItemStack stack) - Specified by:
isBarVisible
in interfaceEnergyItemHelper
-
getBarWidth
public int getBarWidth(net.minecraft.world.item.ItemStack stack) - Specified by:
getBarWidth
in interfaceEnergyItemHelper
-
getBarColor
public int getBarColor(net.minecraft.world.item.ItemStack stack) - Specified by:
getBarColor
in interfaceEnergyItemHelper
-
createAtEnergyCapacity
public net.minecraft.world.item.ItemStack createAtEnergyCapacity(net.minecraft.world.item.Item item) - Specified by:
createAtEnergyCapacity
in interfaceEnergyItemHelper
-
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 interfaceEnergyItemHelper
-