Class BacktankUtil

java.lang.Object
com.simibubi.create.content.equipment.armor.BacktankUtil

public class BacktankUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static boolean
    canAbsorbDamage(net.minecraft.world.entity.LivingEntity entity, int usesPerTank)
     
    static void
    consumeAir(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack backtank, int i)
     
    static int
    getAir(net.minecraft.world.item.ItemStack backtank)
     
    static List<net.minecraft.world.item.ItemStack>
    getAllWithAir(net.minecraft.world.entity.LivingEntity entity)
     
    static int
    getBarColor(net.minecraft.world.item.ItemStack stack, int usesPerTank)
     
    static int
    getBarWidth(net.minecraft.world.item.ItemStack stack, int usesPerTank)
     
    static boolean
    hasAirRemaining(net.minecraft.world.item.ItemStack backtank)
     
    static boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack, int usesPerTank)
     
    static int
    maxAir(int enchantLevel)
     
    static int
    maxAir(net.minecraft.world.item.ItemStack backtank)
     
    static int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.