Record Class TTPipeConnection<VALVE extends IValve<VALVE>>
java.lang.Object
java.lang.Record
com.petrolpark.core.world.block.ttPipe.TTPipeConnection<VALVE>
- Record Components:
relativePos- The relative position of the pipe to connect toface- The face of the Block of the pipe to connect to
-
Constructor Summary
ConstructorsConstructorDescriptionTTPipeConnection(net.minecraft.core.Vec3i relativePos, net.minecraft.core.Direction face, VALVE valve) Creates an instance of aTTPipeConnectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.core.Directionface()Returns the value of thefacerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.Vec3iReturns the value of therelativePosrecord component.final StringtoString()Returns a string representation of this record class.valve()Returns the value of thevalverecord component.
-
Constructor Details
-
TTPipeConnection
public TTPipeConnection(net.minecraft.core.Vec3i relativePos, net.minecraft.core.Direction face, @Nullable VALVE valve) Creates an instance of aTTPipeConnectionrecord class.- Parameters:
relativePos- the value for therelativePosrecord componentface- the value for thefacerecord componentvalve- the value for thevalverecord 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). -
relativePos
public net.minecraft.core.Vec3i relativePos()Returns the value of therelativePosrecord component.- Returns:
- the value of the
relativePosrecord component
-
face
public net.minecraft.core.Direction face()Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord component
-
valve
Returns the value of thevalverecord component.- Returns:
- the value of the
valverecord component
-