Record Class StructureGenerationSample
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.sample.StructureGenerationSample
- Record Components:
duration-chunkPos-structureName-level-success-
- All Implemented Interfaces:
LongRunningSample
public record StructureGenerationSample(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success)
extends Record
implements LongRunningSample
- Mappings:
Namespace Name named net/minecraft/util/profiling/jfr/sample/StructureGenerationSampleintermediary net/minecraft/class_10373official bspnamed durationintermediary comp_16official anamed chunkPosintermediary comp_3331official bnamed structureNameintermediary comp_3332official cnamed levelintermediary comp_3333official dnamed successintermediary comp_3334official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkPosThe field for thechunkPosrecord component.private final DurationThe field for thedurationrecord component.private final StringThe field for thelevelrecord component.private final StringThe field for thestructureNamerecord component.private final booleanThe field for thesuccessrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStructureGenerationSample(Duration duration, ChunkPos chunkPos, String string, String string2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionchunkPos()Returns the value of thechunkPosrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.static StructureGenerationSamplefromEvent(RecordedEvent event) final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.Returns the value of thestructureNamerecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
duration
The field for thedurationrecord component. -
chunkPos
The field for thechunkPosrecord component. -
structureName
The field for thestructureNamerecord component. -
level
The field for thelevelrecord component. -
success
private final boolean successThe field for thesuccessrecord component.
-
-
Constructor Details
-
StructureGenerationSample
-
-
Method Details
-
fromEvent
- Mappings:
Namespace Name Mixin selector named fromEventLnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;intermediary method_65114Lnet/minecraft/class_10373;method_65114(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_10373;official aLbsp;a(Ljdk/jfr/consumer/RecordedEvent;)Lbsp;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
structureName
Returns the value of thestructureNamerecord component.- Returns:
- the value of the
structureNamerecord component
-
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-