Record Class TrackedWaypoint.Fade
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.level.waypoint.TrackedWaypoint.Fade
- Enclosing class:
- TrackedWaypoint
public static record TrackedWaypoint.Fade(int nearDist, int farDist, float nearAlpha, float farAlpha)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFade(int nearDist, int farDist, float nearAlpha, float farAlpha) Creates an instance of aFaderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatfarAlpha()Returns the value of thefarAlpharecord component.intfarDist()Returns the value of thefarDistrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of thenearAlpharecord component.intnearDist()Returns the value of thenearDistrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Fade
public Fade(int nearDist, int farDist, float nearAlpha, float farAlpha) Creates an instance of aFaderecord class.- Parameters:
nearDist- the value for thenearDistrecord componentfarDist- the value for thefarDistrecord componentnearAlpha- the value for thenearAlpharecord componentfarAlpha- the value for thefarAlpharecord 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 with '=='. -
nearDist
public int nearDist()Returns the value of thenearDistrecord component.- Returns:
- the value of the
nearDistrecord component
-
farDist
public int farDist()Returns the value of thefarDistrecord component.- Returns:
- the value of the
farDistrecord component
-
nearAlpha
public float nearAlpha()Returns the value of thenearAlpharecord component.- Returns:
- the value of the
nearAlpharecord component
-
farAlpha
public float farAlpha()Returns the value of thefarAlpharecord component.- Returns:
- the value of the
farAlpharecord component
-