Record Class ChunkGenStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ChunkGenStat
- All Implemented Interfaces:
TimedStat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkPosThe field for thechunkPosrecord component.private final DurationThe field for thedurationrecord component.private final StringThe field for thelevelrecord component.private final ChunkStatusThe field for thestatusrecord component.private final ColumnPosThe field for theworldPosrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenStat(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchunkPos()Returns the value of thechunkPosrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.static ChunkGenStatfrom(RecordedEvent p_185605_) final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.worldPos()Returns the value of theworldPosrecord component.
-
Field Details
-
duration
The field for thedurationrecord component. -
chunkPos
The field for thechunkPosrecord component. -
worldPos
The field for theworldPosrecord component. -
status
The field for thestatusrecord component. -
level
The field for thelevelrecord component.
-
-
Constructor Details
-
ChunkGenStat
public ChunkGenStat(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStatrecord class.- Parameters:
duration- the value for thedurationrecord componentchunkPos- the value for thechunkPosrecord componentworldPos- the value for theworldPosrecord componentstatus- the value for thestatusrecord componentlevel- the value for thelevelrecord component
-
-
Method Details
-
from
-
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). -
duration
Returns the value of thedurationrecord component. -
chunkPos
Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
worldPos
Returns the value of theworldPosrecord component.- Returns:
- the value of the
worldPosrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-