Class BacktankUtil
java.lang.Object
com.simibubi.create.content.equipment.armor.BacktankUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBacktankSupplier(Function<net.minecraft.world.entity.LivingEntity, List<net.minecraft.world.item.ItemStack>> supplier) Use this method to add custom entry points to the backtank item stack supplier, e.g.static booleancanAbsorbDamage(net.minecraft.world.entity.LivingEntity entity, int usesPerTank) static voidconsumeAir(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack backtank, int i) static intgetAir(net.minecraft.world.item.ItemStack backtank) static List<net.minecraft.world.item.ItemStack> getAllWithAir(net.minecraft.world.entity.LivingEntity entity) 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
-
getAllWithAir
public static List<net.minecraft.world.item.ItemStack> getAllWithAir(net.minecraft.world.entity.LivingEntity entity) -
hasAirRemaining
public static boolean hasAirRemaining(net.minecraft.world.item.ItemStack backtank) -
getAir
public static int getAir(net.minecraft.world.item.ItemStack backtank) -
consumeAir
public static void consumeAir(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack backtank, int 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) -
addBacktankSupplier
public static void addBacktankSupplier(Function<net.minecraft.world.entity.LivingEntity, List<net.minecraft.world.item.ItemStack>> supplier) Use this method to add custom entry points to the backtank item stack supplier, e.g. getting them from custom slots or items.
-