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 bbfintermediary net/minecraft/class_6521named net/minecraft/util/profiling/jfr/sample/ChunkGenerationSampleofficial aintermediary comp_16named durationofficial bintermediary comp_17named chunkPosofficial cintermediary comp_18named centerPosofficial dintermediary comp_19named chunkStatusofficial eintermediary comp_21named worldKey
-
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()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 official <init>Lbbf;<init>(Ljava/time/Duration;Lclr;Lahv;Lddz;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;)Vnamed <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 aLbbf;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbf;intermediary method_38031Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;named fromEventLnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;
-
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
- Specified by:
durationin interfaceLongRunningSample- Mappings:
Namespace Name Mixin selector official aLbbn;a()Ljava/time/Duration;intermediary comp_16Lnet/minecraft/class_6534;comp_16()Ljava/time/Duration;named durationLnet/minecraft/util/profiling/jfr/sample/LongRunningSample;duration()Ljava/time/Duration;
-
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
-