Class RangedAttribute

All Implemented Interfaces:
IForgeRegistryEntry<Attribute>

public class RangedAttribute extends Attribute
  • Field Details

    • minValue

      private final double minValue
    • maxValue

      private final double maxValue
  • Constructor Details

    • RangedAttribute

      public RangedAttribute(String p_22310_, double p_22311_, double p_22312_, double p_22313_)
  • Method Details

    • getMinValue

      public double getMinValue()
    • getMaxValue

      public double getMaxValue()
    • sanitizeValue

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