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.
Mappings:
Namespace Name
official bhc
intermediary net/minecraft/class_1329
named net/minecraft/entity/attribute/ClampedEntityAttribute
  • Field Details

    • minValue

      private final double minValue
      Mappings:
      Namespace Name Mixin selector
      official b Lbhc;b:D
      intermediary field_6353 Lnet/minecraft/class_1329;field_6353:D
      named minValue Lnet/minecraft/entity/attribute/ClampedEntityAttribute;minValue:D
    • maxValue

      private final double maxValue
      Mappings:
      Namespace Name Mixin selector
      official c Lbhc;c:D
      intermediary field_6351 Lnet/minecraft/class_1329;field_6351:D
      named maxValue Lnet/minecraft/entity/attribute/ClampedEntityAttribute;maxValue:D
  • Constructor Details

    • ClampedEntityAttribute

      public ClampedEntityAttribute(String translationKey, double fallback, double min, double max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhc;<init>(Ljava/lang/String;DDD)V
      intermediary <init> Lnet/minecraft/class_1329;<init>(Ljava/lang/String;DDD)V
      named <init> Lnet/minecraft/entity/attribute/ClampedEntityAttribute;<init>(Ljava/lang/String;DDD)V
  • Method Details

    • getMinValue

      public double getMinValue()
      Mappings:
      Namespace Name Mixin selector
      official d Lbhc;d()D
      intermediary method_35061 Lnet/minecraft/class_1329;method_35061()D
      named getMinValue Lnet/minecraft/entity/attribute/ClampedEntityAttribute;getMinValue()D
    • getMaxValue

      public double getMaxValue()
      Mappings:
      Namespace Name Mixin selector
      official e Lbhc;e()D
      intermediary method_35062 Lnet/minecraft/class_1329;method_35062()D
      named getMaxValue Lnet/minecraft/entity/attribute/ClampedEntityAttribute;getMaxValue()D
    • clamp

      public double clamp(double value)
      Overrides:
      clamp in class EntityAttribute
      Mappings:
      Namespace Name Mixin selector
      official a Lbgv;a(D)D
      intermediary method_6165 Lnet/minecraft/class_1320;method_6165(D)D
      named clamp Lnet/minecraft/entity/attribute/EntityAttribute;clamp(D)D