Record Class BezierTrackPointLocation
java.lang.Object
java.lang.Record
com.simibubi.create.content.logistics.trains.track.BezierTrackPointLocation
public record BezierTrackPointLocation(net.minecraft.core.BlockPos curveTarget, int segment)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBezierTrackPointLocation(net.minecraft.core.BlockPos curveTarget, int segment) Creates an instance of aBezierTrackPointLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosReturns the value of thecurveTargetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BezierTrackPointLocation
public BezierTrackPointLocation(net.minecraft.core.BlockPos curveTarget, int segment) Creates an instance of aBezierTrackPointLocationrecord class.- Parameters:
curveTarget- the value for thecurveTargetrecord componentsegment- the value for thesegmentrecord 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 '=='. -
curveTarget
public net.minecraft.core.BlockPos curveTarget()Returns the value of thecurveTargetrecord component.- Returns:
- the value of the
curveTargetrecord component
-
segment
public int segment()Returns the value of thesegmentrecord component.- Returns:
- the value of the
segmentrecord component
-