Class EnvironmentAttribute<Value>
java.lang.Object
net.minecraft.world.attribute.EnvironmentAttribute<Value>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Valueprivate final booleanprivate final booleanprivate final booleanprivate final AttributeType<Value> private final AttributeRange<Value> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEnvironmentAttribute(AttributeType<Value> type, Value defaultValue, AttributeRange<Value> valueRange, boolean isSyncable, boolean isPositional, boolean isSpatiallyInterpolated) -
Method Summary
Modifier and TypeMethodDescriptionstatic <Value> EnvironmentAttribute.Builder<Value> builder(AttributeType<Value> type) booleanbooleanbooleansanitizeValue(Value value) toString()type()com.mojang.serialization.Codec<Value>
-
Field Details
-
type
-
defaultValue
-
valueRange
-
isSyncable
private final boolean isSyncable -
isPositional
private final boolean isPositional -
isSpatiallyInterpolated
private final boolean isSpatiallyInterpolated
-
-
Constructor Details
-
EnvironmentAttribute
private EnvironmentAttribute(AttributeType<Value> type, Value defaultValue, AttributeRange<Value> valueRange, boolean isSyncable, boolean isPositional, boolean isSpatiallyInterpolated)
-
-
Method Details
-
builder
-
type
-
defaultValue
-
valueCodec
-
sanitizeValue
-
isSyncable
public boolean isSyncable() -
isPositional
public boolean isPositional() -
isSpatiallyInterpolated
public boolean isSpatiallyInterpolated() -
toString
-