Record Class AddFeaturesByFilterBiomeModifier
java.lang.Object
java.lang.Record
com.idark.valoria.registries.levelgen.modifier.AddFeaturesByFilterBiomeModifier
- All Implemented Interfaces:
net.minecraftforge.common.world.BiomeModifier
public record AddFeaturesByFilterBiomeModifier(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> allowedBiomes, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome>> deniedBiomes, Optional<Float> minimumTemperature, Optional<Float> maximumTemperature, net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.placement.PlacedFeature> features, net.minecraft.world.level.levelgen.GenerationStep.Decoration step)
extends Record
implements net.minecraftforge.common.world.BiomeModifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.common.world.BiomeModifier
net.minecraftforge.common.world.BiomeModifier.Phase
-
Field Summary
Fields inherited from interface net.minecraftforge.common.world.BiomeModifier
DIRECT_CODEC, LIST_CODEC, REFERENCE_CODEC
-
Constructor Summary
ConstructorDescriptionAddFeaturesByFilterBiomeModifier
(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> allowedBiomes, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome>> deniedBiomes, Optional<Float> minimumTemperature, Optional<Float> maximumTemperature, net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.placement.PlacedFeature> features, net.minecraft.world.level.levelgen.GenerationStep.Decoration step) Creates an instance of aAddFeaturesByFilterBiomeModifier
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome>
Returns the value of theallowedBiomes
record component.com.mojang.serialization.Codec<? extends net.minecraftforge.common.world.BiomeModifier>
codec()
Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome>>
Returns the value of thedeniedBiomes
record component.final boolean
Indicates whether some other object is "equal to" this one.net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.placement.PlacedFeature>
features()
Returns the value of thefeatures
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themaximumTemperature
record component.Returns the value of theminimumTemperature
record component.void
modify
(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome, net.minecraftforge.common.world.BiomeModifier.Phase phase, net.minecraftforge.common.world.ModifiableBiomeInfo.BiomeInfo.Builder builder) net.minecraft.world.level.levelgen.GenerationStep.Decoration
step()
Returns the value of thestep
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddFeaturesByFilterBiomeModifier
public AddFeaturesByFilterBiomeModifier(net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> allowedBiomes, Optional<net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome>> deniedBiomes, Optional<Float> minimumTemperature, Optional<Float> maximumTemperature, net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.placement.PlacedFeature> features, net.minecraft.world.level.levelgen.GenerationStep.Decoration step) Creates an instance of aAddFeaturesByFilterBiomeModifier
record class.- Parameters:
allowedBiomes
- the value for theallowedBiomes
record componentdeniedBiomes
- the value for thedeniedBiomes
record componentminimumTemperature
- the value for theminimumTemperature
record componentmaximumTemperature
- the value for themaximumTemperature
record componentfeatures
- the value for thefeatures
record componentstep
- the value for thestep
record component
-
-
Method Details
-
modify
public void modify(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome, net.minecraftforge.common.world.BiomeModifier.Phase phase, net.minecraftforge.common.world.ModifiableBiomeInfo.BiomeInfo.Builder builder) - Specified by:
modify
in interfacenet.minecraftforge.common.world.BiomeModifier
-
codec
public com.mojang.serialization.Codec<? extends net.minecraftforge.common.world.BiomeModifier> codec()- Specified by:
codec
in interfacenet.minecraftforge.common.world.BiomeModifier
-
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)
. -
allowedBiomes
public net.minecraft.core.HolderSet<net.minecraft.world.level.biome.Biome> allowedBiomes()Returns the value of theallowedBiomes
record component.- Returns:
- the value of the
allowedBiomes
record component
-
deniedBiomes
Returns the value of thedeniedBiomes
record component.- Returns:
- the value of the
deniedBiomes
record component
-
minimumTemperature
Returns the value of theminimumTemperature
record component.- Returns:
- the value of the
minimumTemperature
record component
-
maximumTemperature
Returns the value of themaximumTemperature
record component.- Returns:
- the value of the
maximumTemperature
record component
-
features
public net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.placement.PlacedFeature> features()Returns the value of thefeatures
record component.- Returns:
- the value of the
features
record component
-
step
public net.minecraft.world.level.levelgen.GenerationStep.Decoration step()Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-