Interface BurnoutHelper
public interface BurnoutHelper
Helper for burnout-related operations.
-
Method Summary
Modifier and TypeMethodDescriptionbooleandecreaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount) Decreases theLivingEntity's burnout value.doublegetBurnout(net.minecraft.world.entity.LivingEntity entity) doubleReturns the base value used for calculating the maximum burnout of aLivingEntity.doubleReturns the multiplier used for calculating the maximum burnout of aLivingEntity.doublegetBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity) doubleReturns the multiplier used for calculating the burnout regeneration of aLivingEntity.doublegetMaxBurnout(net.minecraft.world.entity.LivingEntity entity) booleanincreaseBurnout(net.minecraft.world.entity.LivingEntity entity, double amount) Increases theLivingEntity's burnout value.booleansetBurnout(net.minecraft.world.entity.LivingEntity entity, double amount) Sets theLivingEntity's burnout value.booleansetBurnoutRegeneration(net.minecraft.world.entity.LivingEntity entity, double amount) Sets theLivingEntity's burnout regeneration value.booleansetMaxBurnout(net.minecraft.world.entity.LivingEntity entity, double amount) Sets theLivingEntity's maximum burnout value.
-
Method Details
-
getBurnoutBase
double getBurnoutBase()Returns the base value used for calculating the maximum burnout of aLivingEntity. 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 aLivingEntity. Burnout is calculated asgetBurnoutBase()+ multiplier * (level - 1).- Returns:
- The multiplier used for calculating maximum burnout.
-
getBurnoutRegenerationMultiplier
double getBurnoutRegenerationMultiplier()Returns the multiplier used for calculating the burnout regeneration of aLivingEntity. Burnout is calculated asgetBurnoutBase()+getBurnoutMultiplier()* (level - 1) * regeneration.- Returns:
- The multiplier used for calculating burnout regeneration.
-
getBurnout
double getBurnout(net.minecraft.world.entity.LivingEntity entity) - Parameters:
entity- TheLivingEntityto get the burnout for.- Returns:
- The burnout value of the given
LivingEntity.
-
getMaxBurnout
double getMaxBurnout(net.minecraft.world.entity.LivingEntity entity) - Parameters:
entity- TheLivingEntityto 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- TheLivingEntityto 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 theLivingEntity's burnout value.- Parameters:
entity- TheLivingEntityto 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 theLivingEntity's burnout value.- Parameters:
entity- TheLivingEntityto 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 theLivingEntity's burnout value.- Parameters:
entity- TheLivingEntityto 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 theLivingEntity's maximum burnout value.- Parameters:
entity- TheLivingEntityto 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 theLivingEntity's burnout regeneration value.- Parameters:
entity- TheLivingEntityto set the burnout regeneration value on.amount- The burnout regeneration value to set.- Returns:
- Whether the operation was successful or not.
-