Record Class PortalTrackProvider.Exit
java.lang.Object
java.lang.Record
com.simibubi.create.api.contraption.train.PortalTrackProvider.Exit
- Enclosing interface:
PortalTrackProvider
public static record PortalTrackProvider.Exit(net.minecraft.server.level.ServerLevel level, net.createmod.catnip.math.BlockFace face)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExit(net.minecraft.server.level.ServerLevel level, net.createmod.catnip.math.BlockFace face) Creates an instance of aExitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.createmod.catnip.math.BlockFaceface()Returns the value of thefacerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.server.level.ServerLevellevel()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Exit
public Exit(net.minecraft.server.level.ServerLevel level, net.createmod.catnip.math.BlockFace face) Creates an instance of aExitrecord class.- Parameters:
level- the value for thelevelrecord componentface- the value for thefacerecord 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). -
level
public net.minecraft.server.level.ServerLevel level()Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
face
public net.createmod.catnip.math.BlockFace face()Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord component
-