Class RangedAttribute
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Attribute>
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.world.entity.ai.attributes.RangedAttribute
- All Implemented Interfaces:
IForgeRegistryEntry<Attribute>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.attributes.Attribute
MAX_NAME_LENGTHFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionRangedAttribute(String p_22310_, double p_22311_, double p_22312_, double p_22313_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.attributes.Attribute
getDefaultValue, getDescriptionId, isClientSyncable, setSyncableMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
minValue
private final double minValue -
maxValue
private final double maxValue
-
-
Constructor Details
-
RangedAttribute
-
-
Method Details
-
getMinValue
public double getMinValue() -
getMaxValue
public double getMaxValue() -
sanitizeValue
public double sanitizeValue(double p_22315_)- Overrides:
sanitizeValuein classAttribute
-