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/StructureGenerationSample- intermediary - net/minecraft/class_10373- official - bpx- named - duration- intermediary - comp_16- official - a- named - chunkPos- intermediary - comp_3331- official - b- named - structureName- intermediary - comp_3332- official - c- named - level- intermediary - comp_3333- official - d- named - success- intermediary - comp_3334- official - e
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionStructureGenerationSample(Duration duration, ChunkPos chunkPos, String string, String string2, boolean bool) 
- 
Method SummaryModifier 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- 
durationThe field for thedurationrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
structureNameThe field for thestructureNamerecord component.
- 
levelThe field for thelevelrecord component.
- 
successprivate final boolean successThe field for thesuccessrecord component.
 
- 
- 
Constructor Details- 
StructureGenerationSample
 
- 
- 
Method Details- 
fromEvent- Mappings:
- Namespace - Name - Mixin selector - named - fromEvent- Lnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;fromEvent(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/util/profiling/jfr/sample/StructureGenerationSample;- intermediary - method_65114- Lnet/minecraft/class_10373;method_65114(Ljdk/jfr/consumer/RecordedEvent;)Lnet/minecraft/class_10373;- official - a- Lbpx;a(Ljdk/jfr/consumer/RecordedEvent;)Lbpx;
 
- 
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
durationReturns the value of thedurationrecord component.- Specified by:
- durationin interface- LongRunningSample
- Returns:
- the value of the durationrecord component
 
- 
chunkPosReturns the value of thechunkPosrecord component.- Returns:
- the value of the chunkPosrecord component
 
- 
structureNameReturns the value of thestructureNamerecord component.- Returns:
- the value of the structureNamerecord component
 
- 
levelReturns the value of thelevelrecord component.- Returns:
- the value of the levelrecord component
 
- 
successpublic boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the successrecord component
 
 
-