Record Class GameEventListenerRenderer.TrackedGameEvent
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.debug.GameEventListenerRenderer.TrackedGameEvent
- Enclosing class:
GameEventListenerRenderer
static record GameEventListenerRenderer.TrackedGameEvent(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrackedGameEvent(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position) Creates an instance of aTrackedGameEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegameEventrecord component.final inthashCode()Returns a hash code value for this object.booleanposition()Returns the value of thepositionrecord component.longReturns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
timeStamp
private final long timeStampThe field for thetimeStamprecord component. -
gameEvent
The field for thegameEventrecord component. -
position
The field for thepositionrecord component.
-
-
Constructor Details
-
TrackedGameEvent
TrackedGameEvent(long timeStamp, ResourceKey<GameEvent> gameEvent, Vec3 position) Creates an instance of aTrackedGameEventrecord class.- Parameters:
timeStamp- the value for thetimeStamprecord componentgameEvent- the value for thegameEventrecord componentposition- the value for thepositionrecord 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 thetimeStamprecord component.- Returns:
- the value of the
timeStamprecord component
-
gameEvent
Returns the value of thegameEventrecord component.- Returns:
- the value of the
gameEventrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-