Class RangedAttribute

java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.world.entity.ai.attributes.RangedAttribute
All Implemented Interfaces:
IAttributeExtension
Direct Known Subclasses:
PercentageAttribute

public class RangedAttribute extends Attribute
  • Field Details

    • minValue

      private final double minValue
    • maxValue

      private final double maxValue
  • Constructor Details

    • RangedAttribute

      public RangedAttribute(String descriptionId, double defaultValue, double minValue, double maxValue)
  • Method Details

    • getMinValue

      public double getMinValue()
    • getMaxValue

      public double getMaxValue()
    • sanitizeValue

      public double sanitizeValue(double value)
      Overrides:
      sanitizeValue in class Attribute