Class StructureModifierTest

java.lang.Object
net.neoforged.neoforge.oldtest.world.StructureModifierTest

public class StructureModifierTest extends Object

This tests the requirements of structure modifier jsons::

  • A structure modifier json is created via datagen.
  • The structure modifier adds a mob spawn of the given category to the given structures.

If the structure modifier is applied correctly, then strongholds should have wither skeletons spawn in them.

  • Field Details

    • STRUCTURE_LIST_CODEC

      private static final com.mojang.serialization.Codec<net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.structure.Structure>> STRUCTURE_LIST_CODEC
    • LOGGER

      public static final org.apache.logging.log4j.Logger LOGGER
    • MODID

      public static final String MODID
      See Also:
    • ENABLED

      public static final boolean ENABLED
      See Also:
    • TEST

      public static final String TEST
      See Also:
    • ADD_SPAWNS_TO_STRUCTURE_RL

      public static final net.minecraft.resources.ResourceLocation ADD_SPAWNS_TO_STRUCTURE_RL
    • MODIFY_STRONGHOLD

      public static final String MODIFY_STRONGHOLD
      See Also:
    • MODIFY_STRONGHOLD_RL

      public static final net.minecraft.resources.ResourceLocation MODIFY_STRONGHOLD_RL
  • Constructor Details

    • StructureModifierTest

      public StructureModifierTest(net.neoforged.bus.api.IEventBus modBus)
  • Method Details