Record Class StaticModule
java.lang.Object
java.lang.Record
zombie.iso.worldgen.StaticModule
public record StaticModule(Biome biome, PrefabStructure prefab, int xmin, int xmax, int ymin, int ymax)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStaticModule(Biome biome, PrefabStructure prefab, int xmin, int xmax, int ymin, int ymax) Creates an instance of aStaticModulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbiome()Returns the value of thebiomerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prefab()Returns the value of theprefabrecord component.final StringtoString()Returns a string representation of this record class.intxmax()Returns the value of thexmaxrecord component.intxmin()Returns the value of thexminrecord component.intymax()Returns the value of theymaxrecord component.intymin()Returns the value of theyminrecord component.
-
Constructor Details
-
StaticModule
Creates an instance of aStaticModulerecord class.- Parameters:
biome- the value for thebiomerecord componentprefab- the value for theprefabrecord componentxmin- the value for thexminrecord componentxmax- the value for thexmaxrecord componentymin- the value for theyminrecord componentymax- the value for theymaxrecord 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. -
biome
Returns the value of thebiomerecord component.- Returns:
- the value of the
biomerecord component
-
prefab
Returns the value of theprefabrecord component.- Returns:
- the value of the
prefabrecord component
-
xmin
public int xmin()Returns the value of thexminrecord component.- Returns:
- the value of the
xminrecord component
-
xmax
public int xmax()Returns the value of thexmaxrecord component.- Returns:
- the value of the
xmaxrecord component
-
ymin
public int ymin()Returns the value of theyminrecord component.- Returns:
- the value of the
yminrecord component
-
ymax
public int ymax()Returns the value of theymaxrecord component.- Returns:
- the value of the
ymaxrecord component
-