Record Class ServerTickTimeSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.ServerTickTimeSample
- Record Components:
time
-averageTickMs
-
- Mappings:
Namespace Name official bbm
intermediary net/minecraft/class_6532
named net/minecraft/util/profiling/jfr/sample/ServerTickTimeSample
official a
intermediary comp_52
named time
official b
intermediary comp_53
named averageTickMs
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Duration
The field for theaverageTickMs
record component.private final Instant
The field for thetime
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaverageTickMs
record component.final boolean
Indicates whether some other object is "equal to" this one.static ServerTickTimeSample
fromEvent
(RecordedEvent event) final int
hashCode()
Returns a hash code value for this object.time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
time
The field for thetime
record component. -
averageTickMs
The field for theaverageTickMs
record component.
-
-
Constructor Details
-
ServerTickTimeSample
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector official a
Lbbm;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbm;
intermediary method_38058
Lnet/minecraft/class_6532;method_38058(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6532;
named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/ServerTickTimeSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ServerTickTimeSample;
-
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 withObjects::equals(Object,Object)
. -
time
Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-
averageTickMs
Returns the value of theaverageTickMs
record component.- Returns:
- the value of the
averageTickMs
record component
-