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/ChunkGenerationSample
intermediary net/minecraft/class_6521
official bnp
named duration
intermediary comp_16
official a
named chunkPos
intermediary comp_17
official b
named centerPos
intermediary comp_18
official c
named chunkStatus
intermediary comp_19
official d
named worldKey
intermediary comp_21
official e
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ColumnPos
The field for thecenterPos
record component.private final ChunkPos
The field for thechunkPos
record component.private final ChunkStatus
The field for thechunkStatus
record component.private final Duration
The field for theduration
record component.private final String
The field for theworldKey
record component. -
Constructor Summary
ConstructorDescriptionChunkGenerationSample
(Duration duration, ChunkPos chunkPos, ColumnPos columnPos, ChunkStatus chunkStatus, String string) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecenterPos
record component.chunkPos()
Returns the value of thechunkPos
record component.Returns the value of thechunkStatus
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.static ChunkGenerationSample
fromEvent
(RecordedEvent event) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.worldKey()
Returns the value of theworldKey
record component.
-
Field Details
-
duration
The field for theduration
record component. -
chunkPos
The field for thechunkPos
record component. -
centerPos
The field for thecenterPos
record component. -
chunkStatus
The field for thechunkStatus
record component. -
worldKey
The field for theworldKey
record 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;)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
official <init>
Lbnp;<init>(Ljava/time/Duration;Ldbn;Laqa;Ldvi;Ljava/lang/String;)V
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector named fromEvent
Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/ChunkGenerationSample;
intermediary method_38031
Lnet/minecraft/class_6521;method_38031(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_6521;
official a
Lbnp;a(Ljdk/jfr/consumer/RecordedEvent;)Lbnp;
-
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 theduration
record component.- Specified by:
duration
in interfaceLongRunningSample
- Returns:
- the value of the
duration
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
centerPos
Returns the value of thecenterPos
record component.- Returns:
- the value of the
centerPos
record component
-
chunkStatus
Returns the value of thechunkStatus
record component.- Returns:
- the value of the
chunkStatus
record component
-
worldKey
Returns the value of theworldKey
record component.- Returns:
- the value of the
worldKey
record component
-