Package net.minecraft.util.debugchart
Record Class DebugSampleSubscriptionTracker.SubscriptionStartedAt
java.lang.Object
java.lang.Record
net.minecraft.util.debugchart.DebugSampleSubscriptionTracker.SubscriptionStartedAt
- Enclosing class:
DebugSampleSubscriptionTracker
static record DebugSampleSubscriptionTracker.SubscriptionStartedAt(long millis, int tick)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionStartedAt(long millis, int tick) Creates an instance of aSubscriptionStartedAtrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmillis()Returns the value of themillisrecord component.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
millis
private final long millisThe field for themillisrecord component. -
tick
private final int tickThe field for thetickrecord component.
-
-
Constructor Details
-
SubscriptionStartedAt
SubscriptionStartedAt(long millis, int tick) Creates an instance of aSubscriptionStartedAtrecord class.- Parameters:
millis- the value for themillisrecord componenttick- the value for thetickrecord 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 '=='. -
millis
public long millis()Returns the value of themillisrecord component.- Returns:
- the value of the
millisrecord component
-
tick
public int tick()Returns the value of thetickrecord component.- Returns:
- the value of the
tickrecord component
-