public interface IBurnoutHelper
Interface for burnout related helper methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    decreaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
    Decreases the burnout value of the given entity.
    float
    getBurnout(net.minecraft.world.entity.LivingEntity entity)
     
    float
    getMaxBurnout(net.minecraft.world.entity.LivingEntity entity)
     
    boolean
    increaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
    Increases the burnout value of the given entity.
    boolean
    setBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
    Sets the burnout value of the given entity.
  • Method Details

    • getBurnout

      float getBurnout(net.minecraft.world.entity.LivingEntity entity)
      Parameters:
      entity - The entity to get the burnout value for.
      Returns:
      The burnout value of the given entity, or 0 if the entity does not have a burnout capability.
    • getMaxBurnout

      float getMaxBurnout(net.minecraft.world.entity.LivingEntity entity)
      Parameters:
      entity - The entity to get the maximum burnout value for.
      Returns:
      The maximum burnout value of the given entity, or 0 if the entity does not have a max burnout value.
    • increaseBurnout

      boolean increaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
      Increases the burnout value of the given entity.
      Parameters:
      entity - The entity to increase the burnout value for.
      amount - The amount to increase the burnout value by.
      Returns:
      True if the operation succeeded, false otherwise.
    • decreaseBurnout

      boolean decreaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
      Decreases the burnout value of the given entity.
      Parameters:
      entity - The entity to decrease the burnout value for.
      amount - The amount to decrease the burnout value by.
      Returns:
      True if the operation succeeded, false otherwise.
    • setBurnout

      boolean setBurnout(net.minecraft.world.entity.LivingEntity entity, float amount)
      Sets the burnout value of the given entity.
      Parameters:
      entity - The entity to set the burnout value for.
      amount - The value to set the burnout value to.
      Returns:
      True if the operation succeeded, false otherwise.