类 AttributeModifier
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeModifier
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final double
private final UUID
private static final org.slf4j.Logger
private final AttributeModifier.Operation
-
构造器概要
构造器构造器说明AttributeModifier
(String pName, double pAmount, AttributeModifier.Operation pOperation) AttributeModifier
(UUID pId, String pName, double pAmount, AttributeModifier.Operation pOperation) AttributeModifier
(UUID pId, Supplier<String> pNameGetter, double pAmount, AttributeModifier.Operation pOperation) -
方法概要
修饰符和类型方法说明boolean
double
getId()
getName()
int
hashCode()
static AttributeModifier
load
(CompoundTag pNbt) save()
toString()
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
amount
private final double amount -
operation
-
nameGetter
-
id
-
-
构造器详细资料
-
AttributeModifier
-
AttributeModifier
public AttributeModifier(UUID pId, String pName, double pAmount, AttributeModifier.Operation pOperation) -
AttributeModifier
public AttributeModifier(UUID pId, Supplier<String> pNameGetter, double pAmount, AttributeModifier.Operation pOperation)
-
-
方法详细资料