Class Attribute
java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
- Direct Known Subclasses:
RangedAttribute
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
private final String
private Attribute.Sentiment
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Attribute>> private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getStyle
(boolean p_347715_) boolean
double
sanitizeValue
(double p_22083_) setSentiment
(Attribute.Sentiment p_347714_) setSyncable
(boolean p_22085_)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
defaultValue
private final double defaultValue -
syncable
private boolean syncable -
descriptionId
-
sentiment
-
-
Constructor Details
-
Attribute
-
-
Method Details
-
getDefaultValue
public double getDefaultValue() -
isClientSyncable
public boolean isClientSyncable() -
setSyncable
-
setSentiment
-
sanitizeValue
public double sanitizeValue(double p_22083_) -
getDescriptionId
-
getStyle
-