net.minecraft.world.attribute

public class EnvironmentAttribute<Value>

net.minecraft.world.attribute.EnvironmentAttribute
net.minecraft.class_12197
net.minecraft.world.attribute.EnvironmentAttribute

Field summary

Modifier and TypeField
private final EnvironmentAttributeType<Value>
type
field_63712
type
private final Value
defaultValue
field_63713
defaultValue
private final AttributeValidator<Value>
valueRange
field_63714
validator
private final boolean
isSyncable
field_63715
synced
private final boolean
isPositional
field_63716
positional
private final boolean
isSpatiallyInterpolated
field_63717
interpolated

Constructor summary

ModifierConstructor
private (EnvironmentAttributeType<Value> type, Value defaultValue, AttributeValidator<Value> validator, boolean synced, boolean positional, boolean interpolated)

Method summary

Modifier and TypeMethod
public static <Value> EnvironmentAttribute$Builder<Value>
builder(AttributeType<Value> type)
method_75648(class_12192<Value> arg0)
builder(EnvironmentAttributeType<Value> type)
public EnvironmentAttributeType<Value>
type()
method_75647()
getType()
public Value
defaultValue()
method_75650()
getDefaultValue()
public com.mojang.serialization.Codec<Value>
valueCodec()
method_75651()
getCodec()
public Value
sanitizeValue(Value value)
method_75649(Value arg0)
clamp(Value value)
public boolean
isSyncable()
method_75652()
isSynced()
public boolean
isPositional()
method_75653()
isPositional()
public boolean
isSpatiallyInterpolated()
method_75654()
isInterpolated()