Interface BurnoutHelper


public interface BurnoutHelper
Helper for burnout-related operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    decreaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
    Decreases the LivingEntity's burnout value.
    double
    getBurnout(net.minecraft.world.entity.LivingEntity entity)
     
    double
    Returns the base value used for calculating the maximum burnout of a LivingEntity.
    double
    Returns the multiplier used for calculating the maximum burnout of a LivingEntity.
    double
    getBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity)
     
    double
    Returns the multiplier used for calculating the burnout regeneration of a LivingEntity.
    double
    getMaxBurnout(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    increaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
    Increases the LivingEntity's burnout value.
    boolean
    setBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
    Sets the LivingEntity's burnout value.
    boolean
    setBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity, double amount)
    Sets the LivingEntity's burnout regeneration value.
    boolean
    setMaxBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
    Sets the LivingEntity's maximum burnout value.
  • Method Details

    • getBurnoutBase

      double getBurnoutBase()
      Returns the base value used for calculating the maximum burnout of a LivingEntity. Burnout is calculated as base + getBurnoutMultiplier() * (level - 1).
      Returns:
      The base value used for calculating maximum burnout.
    • getBurnoutMultiplier

      double getBurnoutMultiplier()
      Returns the multiplier used for calculating the maximum burnout of a LivingEntity. Burnout is calculated as getBurnoutBase() + multiplier * (level - 1).
      Returns:
      The multiplier used for calculating maximum burnout.
    • getBurnoutRegenerationMultiplier

      double getBurnoutRegenerationMultiplier()
      Returns the multiplier used for calculating the burnout regeneration of a LivingEntity. Burnout is calculated as getBurnoutBase() + getBurnoutMultiplier() * (level - 1) * regeneration.
      Returns:
      The multiplier used for calculating burnout regeneration.
    • getBurnout

      double getBurnout(net.minecraft.world.entity.LivingEntity entity)
      Parameters:
      entity - The LivingEntity to get the burnout for.
      Returns:
      The burnout value of the given LivingEntity.
    • getMaxBurnout

      double getMaxBurnout(net.minecraft.world.entity.LivingEntity entity)
      Parameters:
      entity - The LivingEntity to get the maximum burnout for.
      Returns:
      The maximum burnout value of the given LivingEntity.
    • getBurnoutRegeneration

      double getBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity)
      Parameters:
      entity - The LivingEntity to get the burnout regeneration value for.
      Returns:
      The burnout regeneration value of the given LivingEntity.
    • setBurnout

      boolean setBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
      Sets the LivingEntity's burnout value.
      Parameters:
      entity - The LivingEntity to set the burnout value on.
      amount - The burnout value to set.
      Returns:
      Whether the operation was successful or not.
    • increaseBurnout

      boolean increaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
      Increases the LivingEntity's burnout value.
      Parameters:
      entity - The LivingEntity to increase the burnout value on.
      amount - The burnout amount to increase by.
      Returns:
      Whether the operation was successful or not.
    • decreaseBurnout

      boolean decreaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
      Decreases the LivingEntity's burnout value.
      Parameters:
      entity - The LivingEntity to decrease the burnout value on.
      amount - The burnout amount to decrease by.
      Returns:
      Whether the operation was successful or not.
    • setMaxBurnout

      boolean setMaxBurnout(net.minecraft.world.entity.LivingEntity entity, double amount)
      Sets the LivingEntity's maximum burnout value.
      Parameters:
      entity - The LivingEntity to set the maximum burnout value on.
      amount - The maximum burnout value to set.
      Returns:
      Whether the operation was successful or not.
    • setBurnoutRegeneration

      boolean setBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity, double amount)
      Sets the LivingEntity's burnout regeneration value.
      Parameters:
      entity - The LivingEntity to set the burnout regeneration value on.
      amount - The burnout regeneration value to set.
      Returns:
      Whether the operation was successful or not.