Package dev.deepcore.challenge.preview
Record Class FallingPreviewEntry
java.lang.Object
java.lang.Record
dev.deepcore.challenge.preview.FallingPreviewEntry
public record FallingPreviewEntry(UUID entityId, long startTimeMillis, long durationMillis, double fallHeight, double blockScale, float rotationRadians)
extends Record
Represents one preview block entity currently animating downward into place.
-
Constructor Summary
ConstructorsConstructorDescriptionFallingPreviewEntry(UUID entityId, long startTimeMillis, long durationMillis, double fallHeight, double blockScale, float rotationRadians) Creates an instance of aFallingPreviewEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theblockScalerecord component.longReturns the value of thedurationMillisrecord component.entityId()Returns the value of theentityIdrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thefallHeightrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of therotationRadiansrecord component.longReturns the value of thestartTimeMillisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FallingPreviewEntry
public FallingPreviewEntry(UUID entityId, long startTimeMillis, long durationMillis, double fallHeight, double blockScale, float rotationRadians) Creates an instance of aFallingPreviewEntryrecord class.- Parameters:
entityId- the value for theentityIdrecord componentstartTimeMillis- the value for thestartTimeMillisrecord componentdurationMillis- the value for thedurationMillisrecord componentfallHeight- the value for thefallHeightrecord componentblockScale- the value for theblockScalerecord componentrotationRadians- the value for therotationRadiansrecord 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 '=='. -
entityId
Returns the value of theentityIdrecord component.- Returns:
- the value of the
entityIdrecord component
-
startTimeMillis
public long startTimeMillis()Returns the value of thestartTimeMillisrecord component.- Returns:
- the value of the
startTimeMillisrecord component
-
durationMillis
public long durationMillis()Returns the value of thedurationMillisrecord component.- Returns:
- the value of the
durationMillisrecord component
-
fallHeight
public double fallHeight()Returns the value of thefallHeightrecord component.- Returns:
- the value of the
fallHeightrecord component
-
blockScale
public double blockScale()Returns the value of theblockScalerecord component.- Returns:
- the value of the
blockScalerecord component
-
rotationRadians
public float rotationRadians()Returns the value of therotationRadiansrecord component.- Returns:
- the value of the
rotationRadiansrecord component
-