Record Class GameEventListenerRenderer.TrackedGameEvent
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.debug.GameEventListenerRenderer.TrackedGameEvent
- Enclosing class:
- GameEventListenerRenderer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrackedGameEvent
(long timeStamp, GameEvent gameEvent, Vec3 position) Creates an instance of aTrackedGameEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegameEvent
record component.final int
hashCode()
Returns a hash code value for this object.boolean
position()
Returns the value of theposition
record component.long
Returns the value of thetimeStamp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
timeStamp
private final long timeStampThe field for thetimeStamp
record component. -
gameEvent
The field for thegameEvent
record component. -
position
The field for theposition
record component.
-
-
Constructor Details
-
TrackedGameEvent
Creates an instance of aTrackedGameEvent
record class.- Parameters:
timeStamp
- the value for thetimeStamp
record componentgameEvent
- the value for thegameEvent
record componentposition
- the value for theposition
record component
-
-
Method Details
-
isExpired
public boolean isExpired() -
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 '=='. -
timeStamp
public long timeStamp()Returns the value of thetimeStamp
record component.- Returns:
- the value of the
timeStamp
record component
-
gameEvent
Returns the value of thegameEvent
record component.- Returns:
- the value of the
gameEvent
record component
-
position
Returns the value of theposition
record component.- Returns:
- the value of the
position
record component
-