Record Class AttributePhysicsState.Value
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.AttributePhysicsState.Value
- Enclosing class:
AttributePhysicsState
public static record AttributePhysicsState.Value(double base, Map<net.minecraft.resources.Identifier, AttributePhysicsState.Modifier> modifiers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValue(double base, Map<net.minecraft.resources.Identifier, AttributePhysicsState.Modifier> modifiers) Creates an instance of aValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<net.minecraft.resources.Identifier, AttributePhysicsState.Modifier> Returns the value of themodifiersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Value
public Value(double base, Map<net.minecraft.resources.Identifier, AttributePhysicsState.Modifier> modifiers) Creates an instance of aValuerecord class.- Parameters:
base- the value for thebaserecord componentmodifiers- the value for themodifiersrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
base
public double base()Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
modifiers
Returns the value of themodifiersrecord component.- Returns:
- the value of the
modifiersrecord component
-