Record Class BiomeModifiers.Worldgen
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.helper.BiomeModifiers.Worldgen
- Enclosing class:
BiomeModifiers
public static record BiomeModifiers.Worldgen(List<BiomeModifiers.FeatureEntry> addFeatures, List<BiomeModifiers.FeatureEntry> removeFeatures, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> addCarvers, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> removeCarvers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BiomeModifiers.Worldgen> static final BiomeModifiers.Worldgen -
Constructor Summary
ConstructorsConstructorDescriptionWorldgen(List<BiomeModifiers.FeatureEntry> addFeatures, List<BiomeModifiers.FeatureEntry> removeFeatures, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> addCarvers, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> removeCarvers) Creates an instance of aWorldgenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> Returns the value of theaddCarversrecord component.Returns the value of theaddFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> Returns the value of theremoveCarversrecord component.Returns the value of theremoveFeaturesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
CODEC
-
-
Constructor Details
-
Worldgen
public Worldgen(List<BiomeModifiers.FeatureEntry> addFeatures, List<BiomeModifiers.FeatureEntry> removeFeatures, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> addCarvers, List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> removeCarvers) Creates an instance of aWorldgenrecord class.- Parameters:
addFeatures- the value for theaddFeaturesrecord componentremoveFeatures- the value for theremoveFeaturesrecord componentaddCarvers- the value for theaddCarversrecord componentremoveCarvers- the value for theremoveCarversrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
addFeatures
Returns the value of theaddFeaturesrecord component.- Returns:
- the value of the
addFeaturesrecord component
-
removeFeatures
Returns the value of theremoveFeaturesrecord component.- Returns:
- the value of the
removeFeaturesrecord component
-
addCarvers
public List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> addCarvers()Returns the value of theaddCarversrecord component.- Returns:
- the value of the
addCarversrecord component
-
removeCarvers
public List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.carver.WorldCarver>> removeCarvers()Returns the value of theremoveCarversrecord component.- Returns:
- the value of the
removeCarversrecord component
-