Package paulevs.datagen.worldgen
Record Class EdenRingBiomesDataProvider.BiomeInfo
java.lang.Object
java.lang.Record
paulevs.datagen.worldgen.EdenRingBiomesDataProvider.BiomeInfo
- Enclosing class:
EdenRingBiomesDataProvider
public static record EdenRingBiomesDataProvider.BiomeInfo(EdenRingBiome.Config config, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBiomeInfo(EdenRingBiome.Config config, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag) Creates an instance of aBiomeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BiomeInfo
public BiomeInfo(EdenRingBiome.Config config, net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag) Creates an instance of aBiomeInforecord class.- Parameters:
config- the value for theconfigrecord componenttag- the value for thetagrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
tag
public net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-