Record Class ChunkGenerationSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.ChunkGenerationSample
- Record Components:
duration-chunkPos-centerPos-chunkStatus-worldKey-
- All Implemented Interfaces:
LongRunningSample
public record ChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos centerPos, ChunkStatus chunkStatus, String worldKey)
extends Record
implements LongRunningSample
- Mappings:
Namespace Name named net/minecraft/util/profiling/jfr/sample/ChunkGenerationSampleintermediary net/minecraft/class_6521official bnznamed durationintermediary comp_16official anamed chunkPosintermediary comp_17official bnamed centerPosintermediary comp_18official cnamed chunkStatusintermediary comp_19official dnamed worldKeyintermediary comp_21official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ColumnPosThe field for thecenterPosrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final ChunkStatusThe field for thechunkStatusrecord component.private final DurationThe field for thedurationrecord component.private final StringThe field for theworldKeyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecenterPosrecord component.chunkPos()Returns the value of thechunkPosrecord component.Returns the value of thechunkStatusrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.static ChunkGenerationSamplefromEvent(RecordedEvent event) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.worldKey()Returns the value of theworldKeyrecord component.
-
Field Details
-
duration
The field for thedurationrecord component. -
chunkPos
The field for thechunkPosrecord component. -
centerPos
The field for thecenterPosrecord component. -
chunkStatus
The field for thechunkStatusrecord component. -
worldKey
The field for theworldKeyrecord component.
-
-
Constructor Details
-
ChunkGenerationSample
public ChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;<init>(Ljava/time/Duration;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/util/math/ColumnPos;Lnet/minecraft/world/chunk/ChunkStatus;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_6521;<init>(Ljava/time/Duration;Lnet/minecraft/class_1923;Lnet/minecraft/class_2265;Lnet/minecraft/class_2806;Ljava/lang/String;)Vofficial <init>Lbnz;<init>(Ljava/time/Duration;Ldcd;Laqi;Ldvz;Ljava/lang/String;)V
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector named fromEventLnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;intermediary method_38031Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;official aLbnz;a(Ljdk/jfr/consumer/RecordedEvent;)Lbnz;
-
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.- Specified by:
durationin interfaceLongRunningSample- Returns:
- the value of the
durationrecord component
-
chunkPos
Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
centerPos
Returns the value of thecenterPosrecord component.- Returns:
- the value of the
centerPosrecord component
-
chunkStatus
Returns the value of thechunkStatusrecord component.- Returns:
- the value of the
chunkStatusrecord component
-
worldKey
Returns the value of theworldKeyrecord component.- Returns:
- the value of the
worldKeyrecord component
-