Class BackTankUtil
java.lang.Object
com.simibubi.create.content.curiosities.armor.BackTankUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanAbsorbDamage(net.minecraft.world.entity.LivingEntity entity, int usesPerTank) static voidconsumeAir(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack backtank, float i) static net.minecraft.world.item.ItemStackget(net.minecraft.world.entity.LivingEntity entity) static floatgetAir(net.minecraft.world.item.ItemStack backtank) static intgetBarColor(net.minecraft.world.item.ItemStack stack, int usesPerTank) static intgetBarWidth(net.minecraft.world.item.ItemStack stack, int usesPerTank) static booleanhasAirRemaining(net.minecraft.world.item.ItemStack backtank) static booleanisBarVisible(net.minecraft.world.item.ItemStack stack, int usesPerTank) static intmaxAir(int enchantLevel) static intmaxAir(net.minecraft.world.item.ItemStack backtank) static int
-
Constructor Details
-
BackTankUtil
public BackTankUtil()
-
-
Method Details
-
get
public static net.minecraft.world.item.ItemStack get(net.minecraft.world.entity.LivingEntity entity) -
hasAirRemaining
public static boolean hasAirRemaining(net.minecraft.world.item.ItemStack backtank) -
getAir
public static float getAir(net.minecraft.world.item.ItemStack backtank) -
consumeAir
public static void consumeAir(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack backtank, float i) -
maxAir
public static int maxAir(net.minecraft.world.item.ItemStack backtank) -
maxAir
public static int maxAir(int enchantLevel) -
maxAirWithoutEnchants
public static int maxAirWithoutEnchants() -
canAbsorbDamage
public static boolean canAbsorbDamage(net.minecraft.world.entity.LivingEntity entity, int usesPerTank) -
isBarVisible
public static boolean isBarVisible(net.minecraft.world.item.ItemStack stack, int usesPerTank) -
getBarWidth
public static int getBarWidth(net.minecraft.world.item.ItemStack stack, int usesPerTank) -
getBarColor
public static int getBarColor(net.minecraft.world.item.ItemStack stack, int usesPerTank)
-