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 aBiomeMapEntryrecord 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.ore()Returns the value of theorerecord component.intpixel()Returns the value of thepixelrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
BiomeMapEntry
Creates an instance of aBiomeMapEntryrecord class.- Parameters:
pixel- the value for thepixelrecord componentbiome- the value for thebiomerecord componentore- the value for theorerecord componentzone- the value for thezonerecord 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. -
pixel
public int pixel()Returns the value of thepixelrecord component.- Returns:
- the value of the
pixelrecord component
-
biome
Returns the value of thebiomerecord component.- Returns:
- the value of the
biomerecord component
-
ore
Returns the value of theorerecord component.- Returns:
- the value of the
orerecord component
-
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-