Class EnergyInfo
java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.EnergyInfo
-
Method Summary
Modifier and TypeMethodDescriptionList
<net.minecraft.network.chat.Component> void
static EnergyInfo
forClient
(net.minecraft.world.entity.player.Player player, long stored, long capacity) static EnergyInfo
forServer
(net.minecraft.world.entity.player.Player player, LongSupplier storedSupplier, LongSupplier capacitySupplier) double
void
setEnergy
(long newStored, long newCapacity)
-
Method Details
-
detectChanges
public void detectChanges() -
setEnergy
public void setEnergy(long newStored, long newCapacity) -
createTooltip
-
getPercentageFull
public double getPercentageFull() -
forServer
public static EnergyInfo forServer(net.minecraft.world.entity.player.Player player, LongSupplier storedSupplier, LongSupplier capacitySupplier) -
forClient
public static EnergyInfo forClient(net.minecraft.world.entity.player.Player player, long stored, long capacity)
-