Class RangedAttribute
java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<Attribute>
net.minecraft.entity.ai.attributes.Attribute
net.minecraft.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
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorDescriptionRangedAttribute
(String p_i231504_1_, double p_i231504_2_, double p_i231504_4_, double p_i231504_6_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.attributes.Attribute
getDefaultValue, getDescriptionId, isClientSyncable, setSyncable
Methods 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
public RangedAttribute(String p_i231504_1_, double p_i231504_2_, double p_i231504_4_, double p_i231504_6_)
-
-
Method Details
-
sanitizeValue
public double sanitizeValue(double p_111109_1_) - Overrides:
sanitizeValue
in classAttribute
-