Record Class BiomeMapEntry
java.lang.Object
java.lang.Record
zombie.iso.worldgen.maps.BiomeMapEntry
-
Constructor Summary
ConstructorsConstructorDescriptionBiomeMapEntry
(int pixel, String biome, String ore, String zone) Creates an instance of aBiomeMapEntry
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.ore()
Returns the value of theore
record component.int
pixel()
Returns the value of thepixel
record component.final String
toString()
Returns a string representation of this record class.zone()
Returns the value of thezone
record component.
-
Constructor Details
-
BiomeMapEntry
Creates an instance of aBiomeMapEntry
record class.- Parameters:
pixel
- the value for thepixel
record componentbiome
- the value for thebiome
record componentore
- the value for theore
record componentzone
- the value for thezone
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. -
pixel
public int pixel()Returns the value of thepixel
record component.- Returns:
- the value of the
pixel
record component
-
biome
Returns the value of thebiome
record component.- Returns:
- the value of the
biome
record component
-
ore
Returns the value of theore
record component.- Returns:
- the value of the
ore
record component
-
zone
Returns the value of thezone
record component.- Returns:
- the value of the
zone
record component
-