Record Class ChunkIdentification
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ChunkIdentification
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChunkIdentification
(String level, String dimension, int x, int z) Creates an instance of aChunkIdentification
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.static ChunkIdentification
from
(RecordedEvent p_326190_) final int
hashCode()
Returns a hash code value for this object.level()
Returns the value of thelevel
record component.final String
toString()
Returns a string representation of this record class.int
x()
Returns the value of thex
record component.int
z()
Returns the value of thez
record component.
-
Field Details
-
level
The field for thelevel
record component. -
dimension
The field for thedimension
record component. -
x
private final int xThe field for thex
record component. -
z
private final int zThe field for thez
record component.
-
-
Constructor Details
-
ChunkIdentification
Creates an instance of aChunkIdentification
record class.- Parameters:
level
- the value for thelevel
record componentdimension
- the value for thedimension
record componentx
- the value for thex
record componentz
- the value for thez
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 '=='. -
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
dimension
Returns the value of thedimension
record component.- Returns:
- the value of the
dimension
record component
-
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
z
public int z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-