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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkPos
The field for thechunkPos
record component.private final Duration
The field for theduration
record component.private final String
The field for thelevel
record component.private final String
The field for thestructureName
record component.private final boolean
The field for thesuccess
record component. -
Constructor Summary
ConstructorsConstructorDescriptionStructureGenerationSample
(Duration duration, ChunkPos chunkPos, String string, String string2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionchunkPos()
Returns the value of thechunkPos
record component.duration()
Returns the value of theduration
record component.final boolean
Indicates whether some other object is "equal to" this one.static StructureGenerationSample
fromEvent
(RecordedEvent event) final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.Returns the value of thestructureName
record component.boolean
success()
Returns the value of thesuccess
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
duration
The field for theduration
record component. -
chunkPos
The field for thechunkPos
record component. -
structureName
The field for thestructureName
record component. -
level
The field for thelevel
record component. -
success
private final boolean successThe field for thesuccess
record component.
-
-
Constructor Details
-
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;
-
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 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
-
structureName
Returns the value of thestructureName
record component.- Returns:
- the value of the
structureName
record component
-
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
success
public boolean success()Returns the value of thesuccess
record component.- Returns:
- the value of the
success
record component
-