Record Class TrackBlockOutline.BezierPointSelection
java.lang.Object
java.lang.Record
com.simibubi.create.content.logistics.trains.track.TrackBlockOutline.BezierPointSelection
- Enclosing class:
- TrackBlockOutline
public static record TrackBlockOutline.BezierPointSelection(TrackTileEntity te, BezierTrackPointLocation loc, net.minecraft.world.phys.Vec3 vec, net.minecraft.world.phys.Vec3 angles, net.minecraft.world.phys.Vec3 direction)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBezierPointSelection(TrackTileEntity te, BezierTrackPointLocation loc, net.minecraft.world.phys.Vec3 vec, net.minecraft.world.phys.Vec3 angles, net.minecraft.world.phys.Vec3 direction) Creates an instance of aBezierPointSelectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3angles()Returns the value of theanglesrecord component.net.minecraft.world.phys.Vec3Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.loc()Returns the value of thelocrecord component.te()Returns the value of theterecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.world.phys.Vec3vec()Returns the value of thevecrecord component.
-
Constructor Details
-
BezierPointSelection
public BezierPointSelection(TrackTileEntity te, BezierTrackPointLocation loc, net.minecraft.world.phys.Vec3 vec, net.minecraft.world.phys.Vec3 angles, net.minecraft.world.phys.Vec3 direction) Creates an instance of aBezierPointSelectionrecord class.- Parameters:
te- the value for theterecord componentloc- the value for thelocrecord componentvec- the value for thevecrecord componentangles- the value for theanglesrecord componentdirection- the value for thedirectionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
te
Returns the value of theterecord component.- Returns:
- the value of the
terecord component
-
loc
Returns the value of thelocrecord component.- Returns:
- the value of the
locrecord component
-
vec
public net.minecraft.world.phys.Vec3 vec()Returns the value of thevecrecord component.- Returns:
- the value of the
vecrecord component
-
angles
public net.minecraft.world.phys.Vec3 angles()Returns the value of theanglesrecord component.- Returns:
- the value of the
anglesrecord component
-
direction
public net.minecraft.world.phys.Vec3 direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-