Record Class FpsStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FpsStat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfps()Returns the value of thefpsrecord component.static FpsStatfrom(RecordedEvent event, String field) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
fps
private final int fpsThe field for thefpsrecord component.
-
-
Constructor Details
-
FpsStat
public FpsStat(int fps) Creates an instance of aFpsStatrecord class.- Parameters:
fps- the value for thefpsrecord component
-
-
Method Details
-
from
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
fps
public int fps()Returns the value of thefpsrecord component.- Returns:
- the value of the
fpsrecord component
-