Record Class ChunkGenStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ChunkGenStat
- All Implemented Interfaces:
- TimedStat
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionChunkGenStat(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStatrecord class.
- 
Method SummaryModifier 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- 
durationThe field for thedurationrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
worldPosThe field for theworldPosrecord component.
- 
statusThe field for thestatusrecord component.
- 
levelThe field for thelevelrecord component.
 
- 
- 
Constructor Details- 
ChunkGenStatpublic ChunkGenStat(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStatrecord class.- Parameters:
- duration- the value for the- durationrecord component
- chunkPos- the value for the- chunkPosrecord component
- worldPos- the value for the- worldPosrecord component
- status- the value for the- statusrecord component
- level- the value for the- levelrecord component
 
 
- 
- 
Method Details- 
from
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
durationReturns the value of thedurationrecord component.
- 
chunkPosReturns the value of thechunkPosrecord component.- Returns:
- the value of the chunkPosrecord component
 
- 
worldPosReturns the value of theworldPosrecord component.- Returns:
- the value of the worldPosrecord component
 
- 
statusReturns the value of thestatusrecord component.- Returns:
- the value of the statusrecord component
 
- 
levelReturns the value of thelevelrecord component.- Returns:
- the value of the levelrecord component
 
 
-