类 Attribute
java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
- 直接已知子类:
RangedAttribute
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final double
private final String
private Attribute.Sentiment
static final StreamCodec
<RegistryFriendlyByteBuf, Holder<Attribute>> private boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明double
getStyle
(boolean p_343100_) boolean
double
sanitizeValue
(double p_22083_) setSentiment
(Attribute.Sentiment p_343981_) setSyncable
(boolean p_22085_)
-
字段详细资料
-
CODEC
-
STREAM_CODEC
-
defaultValue
private final double defaultValue -
syncable
private boolean syncable -
descriptionId
-
sentiment
-
-
构造器详细资料
-
Attribute
-
-
方法详细资料
-
getDefaultValue
public double getDefaultValue() -
isClientSyncable
public boolean isClientSyncable() -
setSyncable
-
setSentiment
-
sanitizeValue
public double sanitizeValue(double p_22083_) -
getDescriptionId
-
getStyle
-