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 - official - bbg- intermediary - net/minecraft/class_6521- named - net/minecraft/util/profiling/jfr/sample/ChunkGenerationSample- official - a- intermediary - comp_16- named - duration- official - b- intermediary - comp_17- named - chunkPos- official - c- intermediary - comp_18- named - centerPos- official - d- intermediary - comp_19- named - chunkStatus- official - e- intermediary - comp_21- named - worldKey
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thecenterPosrecord component.chunkPos()Returns the value of thechunkPosrecord component.Returns the value of thechunkStatusrecord component.duration()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- 
durationThe field for thedurationrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
centerPosThe field for thecenterPosrecord component.
- 
chunkStatusThe field for thechunkStatusrecord component.
- 
worldKeyThe field for theworldKeyrecord component.
 
- 
- 
Constructor Details- 
ChunkGenerationSamplepublic ChunkGenerationSample(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbbg;<init>(Ljava/time/Duration;Lclt;Lahv;Ldec;Ljava/lang/String;)V- intermediary - <init>- Lnet/minecraft/class_6521;<init>(Ljava/time/Duration;Lnet/minecraft/class_1923;Lnet/minecraft/class_2265;Lnet/minecraft/class_2806;Ljava/lang/String;)V- 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;)V
 
 
- 
- 
Method Details- 
fromEvent- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbbg;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbg;- intermediary - method_38031- Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;- named - fromEvent- Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;
 
- 
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).
- 
duration- Specified by:
- durationin interface- LongRunningSample
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbbo;a()Ljava/time/Duration;- intermediary - comp_16- Lnet/minecraft/class_6534;comp_16()Ljava/time/Duration;- named - duration- Lnet/minecraft/util/profiling/jfr/sample/LongRunningSample;duration()Ljava/time/Duration;
 
- 
chunkPosReturns the value of thechunkPosrecord component.- Returns:
- the value of the chunkPosrecord component
 
- 
centerPosReturns the value of thecenterPosrecord component.- Returns:
- the value of the centerPosrecord component
 
- 
chunkStatusReturns the value of thechunkStatusrecord component.- Returns:
- the value of the chunkStatusrecord component
 
- 
worldKeyReturns the value of theworldKeyrecord component.- Returns:
- the value of the worldKeyrecord component
 
 
-