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 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
ConstructorsConstructorDescriptionStructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) Creates an instance of aStructureGenStatrecord class. -
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 StructureGenStatfrom(RecordedEvent pEvent) 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
-
StructureGenStat
public StructureGenStat(Duration duration, ChunkPos chunkPos, String structureName, String level, boolean success) Creates an instance of aStructureGenStatrecord class.- Parameters:
duration- the value for thedurationrecord componentchunkPos- the value for thechunkPosrecord componentstructureName- the value for thestructureNamerecord componentlevel- the value for thelevelrecord componentsuccess- the value for thesuccessrecord 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 thedurationrecord 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
-