Class HalfLifeChemicalHandler

java.lang.Object
ml.pluto7073.chemicals.handlers.ChemicalHandler
ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler

public abstract class HalfLifeChemicalHandler extends ChemicalHandler
A Chemical handler that exponentially ticks down the amount in a player, using the specified half life.
  • Field Details

    • perTickMultiplier

      protected final float perTickMultiplier
  • Constructor Details

    • HalfLifeChemicalHandler

      public HalfLifeChemicalHandler(int halfLifeTicks, float maxRecommendedAmount)
  • Method Details

    • doTick

      public void doTick(net.minecraft.world.entity.player.Player player)
      Description copied from class: ChemicalHandler
      Updates the current amount of the chemical in the specified player
      Specified by:
      doTick in class ChemicalHandler
      Parameters:
      player - The player to update