Interface IBurnoutHelper
public interface IBurnoutHelper
Interface for burnout related helper methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleandecreaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount) Decreases the burnout value of the given entity.floatgetBurnout(net.minecraft.world.entity.LivingEntity entity) floatgetMaxBurnout(net.minecraft.world.entity.LivingEntity entity) booleanincreaseBurnout(net.minecraft.world.entity.LivingEntity entity, float amount) Increases the burnout value of the given entity.booleansetBurnout(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.
-