Record Class ChainConveyorBlockEntity.ConnectionStats
java.lang.Object
java.lang.Record
com.simibubi.create.content.kinetics.chainConveyor.ChainConveyorBlockEntity.ConnectionStats
- Enclosing class:
ChainConveyorBlockEntity
public static record ChainConveyorBlockEntity.ConnectionStats(float tangentAngle, float chainLength, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionStats(float tangentAngle, float chainLength, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) Creates an instance of aConnectionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of thechainLengthrecord component.net.minecraft.world.phys.Vec3end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3start()Returns the value of thestartrecord component.floatReturns the value of thetangentAnglerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionStats
public ConnectionStats(float tangentAngle, float chainLength, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) Creates an instance of aConnectionStatsrecord class.- Parameters:
tangentAngle- the value for thetangentAnglerecord componentchainLength- the value for thechainLengthrecord componentstart- the value for thestartrecord componentend- the value for theendrecord 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 '=='. -
tangentAngle
public float tangentAngle()Returns the value of thetangentAnglerecord component.- Returns:
- the value of the
tangentAnglerecord component
-
chainLength
public float chainLength()Returns the value of thechainLengthrecord component.- Returns:
- the value of the
chainLengthrecord component
-
start
public net.minecraft.world.phys.Vec3 start()Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
public net.minecraft.world.phys.Vec3 end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-