Record Class ChunkGenStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ChunkGenStat
- All Implemented Interfaces:
TimedStat
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkPos
The field for thechunkPos
record component.private final Duration
The field for theduration
record component.private final String
The field for thelevel
record component.private final ChunkStatus
The field for thestatus
record component.private final ColumnPos
The field for theworldPos
record component. -
Constructor Summary
ConstructorDescriptionChunkGenStat
(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStat
record class. -
Method Summary
Modifier and TypeMethodDescriptionchunkPos()
Returns the value of thechunkPos
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.static ChunkGenStat
from
(RecordedEvent p_185605_) final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.worldPos()
Returns the value of theworldPos
record component.
-
Field Details
-
duration
The field for theduration
record component. -
chunkPos
The field for thechunkPos
record component. -
worldPos
The field for theworldPos
record component. -
status
The field for thestatus
record component. -
level
The field for thelevel
record component.
-
-
Constructor Details
-
ChunkGenStat
public ChunkGenStat(Duration duration, ChunkPos chunkPos, ColumnPos worldPos, ChunkStatus status, String level) Creates an instance of aChunkGenStat
record class.- Parameters:
duration
- the value for theduration
record componentchunkPos
- the value for thechunkPos
record componentworldPos
- the value for theworldPos
record componentstatus
- the value for thestatus
record componentlevel
- the value for thelevel
record component
-
-
Method Details
-
from
-
duration
Returns the value of theduration
record component. -
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)
. -
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
worldPos
Returns the value of theworldPos
record component.- Returns:
- the value of the
worldPos
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-