Package net.minecraftforge.common.world
Class NoneStructureModifier
java.lang.Object
net.minecraftforge.common.world.NoneStructureModifier
- All Implemented Interfaces:
StructureModifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.common.world.StructureModifier
StructureModifier.Phase
-
Field Summary
Fields inherited from interface net.minecraftforge.common.world.StructureModifier
DIRECT_CODEC, LIST_CODEC, REFERENCE_CODEC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends StructureModifier>
codec()
void
modify
(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) Modifies the information via the provided structure builder.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoneStructureModifier
public NoneStructureModifier()
-
-
Method Details
-
modify
public void modify(Holder<Structure> structure, StructureModifier.Phase phase, ModifiableStructureInfo.StructureInfo.Builder builder) Description copied from interface:StructureModifier
Modifies the information via the provided structure builder. Allows mob spawns and world-gen features to be added or removed, and climate and client effects to be modified.- Specified by:
modify
in interfaceStructureModifier
- Parameters:
structure
- the named structure being modified (with original data readable).phase
- structure modification phase. Structure modifiers apply in each phase in order of the enum constants.builder
- mutable structure info builder. Apply changes to this.
-
codec
- Specified by:
codec
in interfaceStructureModifier
- Returns:
- the codec which serializes and deserializes this structure modifier
-