Record Class ChunkIdentification
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ChunkIdentification
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChunkIdentification(String level, String dimension, int x, int z) Creates an instance of aChunkIdentificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.static ChunkIdentificationfrom(RecordedEvent p_327718_) final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Field Details
-
level
The field for thelevelrecord component. -
dimension
The field for thedimensionrecord component. -
x
private final int xThe field for thexrecord component. -
z
private final int zThe field for thezrecord component.
-
-
Constructor Details
-
ChunkIdentification
Creates an instance of aChunkIdentificationrecord class.- Parameters:
level- the value for thelevelrecord componentdimension- the value for thedimensionrecord componentx- the value for thexrecord componentz- the value for thezrecord 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 '=='. -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-