Package hiiragi283.core.util
Object HTStorageHelper
-
- All Implemented Interfaces:
public class HTStorageHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static HTStorageHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static IntegercalculateRedstoneLevel(Iterable<HTAmountView> views)final static IntegercalculateRedstoneLevel(Integer amount, Integer capacity)final static IntegercalculateRedstoneLevel(HTAmountView view)final static ItemStackcreateStackWithEnergy(ItemLike item, Integer amount, Integer count, DataComponentPatch patch)final static IntegergetEnergy(ItemStack container)final static UnitupdateEnergy(ItemStack container, Integer newAmount)final static UnitaddEnergyTooltip(HTAmountView view, Consumer<Component> consumer, Boolean isCreative)final static IntegergetEnergyBarWidth(ItemStack container)final static ItemStackcreateStackWithFluid(ItemLike item, FluidStack fluidStack, Integer count, DataComponentPatch patch)final static FluidStackgetFluid(ItemStack container)final static UnitupdateFluid(ItemStack container, FluidStack newStack)final static UnitaddFluidTooltip(FluidStack stack, Consumer<Component> consumer, TooltipFlag flag, Boolean isCreative)final static IntegergetFluidBarWidth(ItemStack container)-
-
Method Detail
-
calculateRedstoneLevel
final static Integer calculateRedstoneLevel(Iterable<HTAmountView> views)
-
calculateRedstoneLevel
final static Integer calculateRedstoneLevel(Integer amount, Integer capacity)
-
calculateRedstoneLevel
final static Integer calculateRedstoneLevel(HTAmountView view)
-
createStackWithEnergy
final static ItemStack createStackWithEnergy(ItemLike item, Integer amount, Integer count, DataComponentPatch patch)
-
updateEnergy
final static Unit updateEnergy(ItemStack container, Integer newAmount)
-
addEnergyTooltip
final static Unit addEnergyTooltip(HTAmountView view, Consumer<Component> consumer, Boolean isCreative)
-
getEnergyBarWidth
final static Integer getEnergyBarWidth(ItemStack container)
-
createStackWithFluid
final static ItemStack createStackWithFluid(ItemLike item, FluidStack fluidStack, Integer count, DataComponentPatch patch)
-
getFluid
final static FluidStack getFluid(ItemStack container)
-
updateFluid
final static Unit updateFluid(ItemStack container, FluidStack newStack)
-
addFluidTooltip
final static Unit addFluidTooltip(FluidStack stack, Consumer<Component> consumer, TooltipFlag flag, Boolean isCreative)
-
getFluidBarWidth
final static Integer getFluidBarWidth(ItemStack container)
-
-
-
-