Class NothingModifier

java.lang.Object
org.quiltmc.qsl.worldgen.biome.api.codec.NothingModifier
All Implemented Interfaces:
CodecAware, BiomeModifier

public final class NothingModifier extends Object implements BiomeModifier
A biome modifier that does nothing; useful to override existing biome modifiers with a datapack.

The biome modifier identifier is quilt:nothing.

Example:

{
     "type": "quilt:nothing"
 }
  • Field Details

    • CODEC_ID

      public static final net.minecraft.util.Identifier CODEC_ID
    • INSTANCE

      public static final NothingModifier INSTANCE
    • CODEC

      public static final com.mojang.serialization.Codec<NothingModifier> CODEC
  • Method Details

    • getCodecId

      public net.minecraft.util.Identifier getCodecId()
      Description copied from interface: CodecAware
      Returns the identifier of the codec that can be used to encode this object, or null if this object is not encodable.
      Specified by:
      getCodecId in interface CodecAware
      Returns:
      the identifier of the codec that can be used to encode this object, or null if this object is not encodable
    • shouldModify

      public boolean shouldModify(BiomeSelectionContext context)
      Description copied from interface: BiomeModifier
      Returns whether this biome modifier should be applied to the biome.
      Specified by:
      shouldModify in interface BiomeModifier
      Returns:
      whether this biome modifier should be applied to the biome
    • modify

      public void modify(BiomeSelectionContext selectionContext, BiomeModificationContext modificationContext)
      Description copied from interface: BiomeModifier
      Applies this biome modifier to the biome.
      Specified by:
      modify in interface BiomeModifier