Package net.minecraft.world.attribute
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
ConstructorsConstructorDescriptionEnvironmentAttribute(AttributeType<Value> pType, Value pDefaultValue, AttributeRange<Value> pValueRange, boolean pIsSyncable, boolean pIsPositional, boolean pIsSpatiallyInterpolated) -
Method Summary
Modifier and TypeMethodDescriptionstatic <Value> EnvironmentAttribute.Builder<Value> builder(AttributeType<Value> pType) booleanbooleanbooleansanitizeValue(Value pValue) 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
EnvironmentAttribute(AttributeType<Value> pType, Value pDefaultValue, AttributeRange<Value> pValueRange, boolean pIsSyncable, boolean pIsPositional, boolean pIsSpatiallyInterpolated)
-
-
Method Details