Record Class CustomChunkPopulator.LocationData
java.lang.Object
java.lang.Record
com.github.imdabigboss.easydatapack.api.dimentions.CustomChunkPopulator.LocationData
- Enclosing class:
- CustomChunkPopulator
protected static record CustomChunkPopulator.LocationData(int x, int y, int z, @NonNull org.bukkit.block.Biome biome)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLocationData(int x, int y, int z, @NonNull org.bukkit.block.Biome biome)Creates an instance of aLocationDatarecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull org.bukkit.block.Biomebiome()Returns the value of thebiomerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
LocationData
protected LocationData(int x, int y, int z, @NonNull org.bukkit.block.Biome biome)Creates an instance of aLocationDatarecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentbiome- the value for thebiomerecord component
-
-
Method Details
-
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
biome
public @NonNull org.bukkit.block.Biome biome()Returns the value of thebiomerecord component.- Returns:
- the value of the
biomerecord component
-