Record Class FluidTranslocatorPartRenderer.MovingLiquidSnapshot
java.lang.Object
java.lang.Record
codechicken.translocators.client.render.FluidTranslocatorPartRenderer.MovingLiquidSnapshot
- Enclosing class:
FluidTranslocatorPartRenderer
public static record FluidTranslocatorPartRenderer.MovingLiquidSnapshot(net.neoforged.neoforge.fluids.FluidStack stack, int dst, double start, double end, boolean fast)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMovingLiquidSnapshot(net.neoforged.neoforge.fluids.FluidStack stack, int dst, double start, double end, boolean fast) Creates an instance of aMovingLiquidSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdst()Returns the value of thedstrecord component.doubleend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfast()Returns the value of thefastrecord component.final inthashCode()Returns a hash code value for this object.net.neoforged.neoforge.fluids.FluidStackstack()Returns the value of thestackrecord component.doublestart()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MovingLiquidSnapshot
public MovingLiquidSnapshot(net.neoforged.neoforge.fluids.FluidStack stack, int dst, double start, double end, boolean fast) Creates an instance of aMovingLiquidSnapshotrecord class.- Parameters:
stack- the value for thestackrecord componentdst- the value for thedstrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentfast- the value for thefastrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
stack
public net.neoforged.neoforge.fluids.FluidStack stack()Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
dst
public int dst()Returns the value of thedstrecord component.- Returns:
- the value of the
dstrecord component
-
start
public double start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public double end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
fast
public boolean fast()Returns the value of thefastrecord component.- Returns:
- the value of the
fastrecord component
-