Class Attribute
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Attribute>
-
- net.minecraft.entity.ai.attributes.Attribute
-
- All Implemented Interfaces:
IForgeRegistryEntry<Attribute>
- Direct Known Subclasses:
RangedAttribute
public class Attribute extends ForgeRegistryEntry<Attribute>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description private double
defaultValue
private java.lang.String
descriptionId
private boolean
syncable
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Attribute(java.lang.String p_i231500_1_, double p_i231500_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDefaultValue()
java.lang.String
getDescriptionId()
boolean
isClientSyncable()
double
sanitizeValue(double p_111109_1_)
Attribute
setSyncable(boolean p_233753_1_)
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Method Detail
-
getDefaultValue
public double getDefaultValue()
-
isClientSyncable
public boolean isClientSyncable()
-
setSyncable
public Attribute setSyncable(boolean p_233753_1_)
-
sanitizeValue
public double sanitizeValue(double p_111109_1_)
-
getDescriptionId
public java.lang.String getDescriptionId()
-
-