Record Class FluidPhysicsState.Current
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.FluidPhysicsState.Current
- Enclosing class:
FluidPhysicsState
public static record FluidPhysicsState.Current(double height, net.minecraft.world.phys.Vec3 current, int count, net.raphimc.viabedrock.api.model.FluidCurrent.State nativeCurrent)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCurrent(double height, net.minecraft.world.phys.Vec3 current, int count, net.raphimc.viabedrock.api.model.FluidCurrent.State nativeCurrent) Creates an instance of aCurrentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.net.minecraft.world.phys.Vec3current()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleheight()Returns the value of theheightrecord component.net.raphimc.viabedrock.api.model.FluidCurrent.StateReturns the value of thenativeCurrentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Current
public Current(double height, net.minecraft.world.phys.Vec3 current, int count, net.raphimc.viabedrock.api.model.FluidCurrent.State nativeCurrent) Creates an instance of aCurrentrecord class.- Parameters:
height- the value for theheightrecord componentcurrent- the value for thecurrentrecord componentcount- the value for thecountrecord componentnativeCurrent- the value for thenativeCurrentrecord 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. -
height
public double height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
current
public net.minecraft.world.phys.Vec3 current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
nativeCurrent
public net.raphimc.viabedrock.api.model.FluidCurrent.State nativeCurrent()Returns the value of thenativeCurrentrecord component.- Returns:
- the value of the
nativeCurrentrecord component
-