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 bbf
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 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()
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 official <init>
Lbbf;<init>(Ljava/time/Duration;Lclr;Lahv;Lddz;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
Lbbf;a(Ljdk/jfr/consumer/RecordedEvent;)Lbbf;
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;
-
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:
duration
in interfaceLongRunningSample
- Mappings:
Namespace Name Mixin selector official a
Lbbn;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;
-
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
-