Record Class SquareCoord
java.lang.Object
java.lang.Record
zombie.iso.worldgen.utils.SquareCoord
-
Constructor Summary
ConstructorsConstructorDescriptionSquareCoord
(int x, int y, int z) Creates an instance of aSquareCoord
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static SquareCoord
load
(ByteBuffer byteBuffer) void
save
(ByteBuffer byteBuffer) final String
toString()
Returns a string representation of this record class.int
x()
Returns the value of thex
record component.int
y()
Returns the value of they
record component.int
z()
Returns the value of thez
record component.
-
Constructor Details
-
SquareCoord
public SquareCoord(int x, int y, int z) Creates an instance of aSquareCoord
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentz
- the value for thez
record component
-
-
Method Details
-
load
-
save
-
toString
-
hashCode
-
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. All components in this record class are compared with thecompare
method from their corresponding wrapper classes. -
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
public int z()Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-