Class ClampedEntityAttribute

java.lang.Object
net.minecraft.entity.attribute.EntityAttribute
net.minecraft.entity.attribute.ClampedEntityAttribute

public class ClampedEntityAttribute
extends EntityAttribute
Represents a type of attribute with minimum and maximum value limits.
  • Field Details

    • minValue

      private final double minValue
    • maxValue

      private final double maxValue
  • Constructor Details

    • ClampedEntityAttribute

      public ClampedEntityAttribute​(String translationKey, double fallback, double min, double max)
  • Method Details