Record Class FluidPhysicsState.Tracker
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.FluidPhysicsState.Tracker
- Enclosing class:
FluidPhysicsState
public static record FluidPhysicsState.Tracker(net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> type, double height, boolean eyesInside)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTracker(net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> type, double height, boolean eyesInside) Creates an instance of aTrackerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeyesInsiderecord component.final inthashCode()Returns a hash code value for this object.doubleheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> type()Returns the value of thetyperecord component.
-
Constructor Details
-
Tracker
public Tracker(net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> type, double height, boolean eyesInside) Creates an instance of aTrackerrecord class.- Parameters:
type- the value for thetyperecord componentheight- the value for theheightrecord componenteyesInside- the value for theeyesInsiderecord 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. -
type
public net.minecraft.core.Holder<net.minecraft.world.level.material.Fluid> type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
height
public double height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
eyesInside
public boolean eyesInside()Returns the value of theeyesInsiderecord component.- Returns:
- the value of the
eyesInsiderecord component
-