Record Class StructureGenStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.StructureGenStat
- All Implemented Interfaces:
TimedStat
-
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
ConstructorsConstructorDescriptionStructureGenStat
(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) Creates an instance of aStructureGenStat
record class. -
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 StructureGenStat
from
(RecordedEvent p_383225_) 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
-
StructureGenStat
public StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) Creates an instance of aStructureGenStat
record class.- Parameters:
duration
- the value for theduration
record componentchunkPos
- the value for thechunkPos
record componentstructureName
- the value for thestructureName
record componentlevel
- the value for thelevel
record componentsuccess
- the value for thesuccess
record component
-
-
Method Details
-
from
-
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. -
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
-