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 aStaticModule
record class. -
Method Summary
Modifier and TypeMethodDescriptionbiome()
Returns the value of thebiome
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.prefab()
Returns the value of theprefab
record component.final String
toString()
Returns a string representation of this record class.int
xmax()
Returns the value of thexmax
record component.int
xmin()
Returns the value of thexmin
record component.int
ymax()
Returns the value of theymax
record component.int
ymin()
Returns the value of theymin
record component.
-
Constructor Details
-
StaticModule
Creates an instance of aStaticModule
record class.- Parameters:
biome
- the value for thebiome
record componentprefab
- the value for theprefab
record componentxmin
- the value for thexmin
record componentxmax
- the value for thexmax
record componentymin
- the value for theymin
record componentymax
- the value for theymax
record 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 thecompare
method from their corresponding wrapper classes. -
biome
Returns the value of thebiome
record component.- Returns:
- the value of the
biome
record component
-
prefab
Returns the value of theprefab
record component.- Returns:
- the value of the
prefab
record component
-
xmin
public int xmin()Returns the value of thexmin
record component.- Returns:
- the value of the
xmin
record component
-
xmax
public int xmax()Returns the value of thexmax
record component.- Returns:
- the value of the
xmax
record component
-
ymin
public int ymin()Returns the value of theymin
record component.- Returns:
- the value of the
ymin
record component
-
ymax
public int ymax()Returns the value of theymax
record component.- Returns:
- the value of the
ymax
record component
-