Record Class DimensionData
java.lang.Object
java.lang.Record
com.zenith.mc.dimension.DimensionData
- All Implemented Interfaces:
RegistryData
public record DimensionData(int id, String name, int minY, int buildHeight, int height)
extends Record
implements RegistryData
-
Constructor Summary
ConstructorsConstructorDescriptionDimensionData(int id, String name, int minY, int buildHeight, int height) Creates an instance of aDimensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebuildHeightrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intid()Returns the value of theidrecord component.intminY()Returns the value of theminYrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DimensionData
Creates an instance of aDimensionDatarecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentminY- the value for theminYrecord componentbuildHeight- the value for thebuildHeightrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Specified by:
idin interfaceRegistryData- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceRegistryData- Returns:
- the value of the
namerecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
buildHeight
public int buildHeight()Returns the value of thebuildHeightrecord component.- Returns:
- the value of the
buildHeightrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-