Class NothingModifier
java.lang.Object
org.quiltmc.qsl.worldgen.biome.api.codec.NothingModifier
- All Implemented Interfaces:
CodecAware,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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<NothingModifier> static final net.minecraft.util.Identifierstatic final NothingModifierFields inherited from interface org.quiltmc.qsl.worldgen.biome.api.BiomeModifier
BIOME_MODIFIER_CODECS, BIOME_SELECTOR_CODEC, BIOME_SELECTOR_CODECS -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.IdentifierReturns the identifier of the codec that can be used to encode this object, ornullif this object is not encodable.voidmodify(BiomeSelectionContext selectionContext, BiomeModificationContext modificationContext) Applies this biome modifier to the biome.booleanshouldModify(BiomeSelectionContext context) Returns whether this biome modifier should be applied to the biome.
-
Field Details
-
CODEC_ID
public static final net.minecraft.util.Identifier CODEC_ID -
INSTANCE
-
CODEC
-
-
Method Details
-
getCodecId
public net.minecraft.util.Identifier getCodecId()Description copied from interface:CodecAwareReturns the identifier of the codec that can be used to encode this object, ornullif this object is not encodable.- Specified by:
getCodecIdin interfaceCodecAware- Returns:
- the identifier of the codec that can be used to encode this object, or
nullif this object is not encodable
-
shouldModify
Description copied from interface:BiomeModifierReturns whether this biome modifier should be applied to the biome.- Specified by:
shouldModifyin interfaceBiomeModifier- Returns:
- whether this biome modifier should be applied to the biome
-
modify
public void modify(BiomeSelectionContext selectionContext, BiomeModificationContext modificationContext) Description copied from interface:BiomeModifierApplies this biome modifier to the biome.- Specified by:
modifyin interfaceBiomeModifier
-