Class DimensionSettingsTest


  • public class DimensionSettingsTest
    extends java.lang.Object
    To see the effects of this test mod you must create a new world then teleport to the custom dimension (use: /execute in dimension_settings_test:test_overworld run tp @s ...). You should observe that the only structure that generates in the dimension is the ruined portal and it should do so very frequently. Note: This mod adds a data asset located at: /data/dimension_settings_test/dimension/test_overworld.json
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addStructure​(FMLLoadCompleteEvent event)
      Demonstrates how a mod could handle adding their structure settings to a specific dimension.
      private static DimensionSettings createDimensionSettings()
      Create a DimensionSettings instance copying all but the structure settings from overworld.
      private void registerSettings​(FMLCommonSetupEvent event)
      Demonstrates how a mod can register custom DimensionSettings which can be referenced from within a datapack dimension config whilst being discoverable for other mods to add to and remove structures etc from.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
    • Constructor Detail

      • DimensionSettingsTest

        public DimensionSettingsTest()
    • Method Detail

      • registerSettings

        private void registerSettings​(FMLCommonSetupEvent event)
        Demonstrates how a mod can register custom DimensionSettings which can be referenced from within a datapack dimension config whilst being discoverable for other mods to add to and remove structures etc from.
      • addStructure

        private void addStructure​(FMLLoadCompleteEvent event)
        Demonstrates how a mod could handle adding their structure settings to a specific dimension.
      • createDimensionSettings

        private static DimensionSettings createDimensionSettings()
        Create a DimensionSettings instance copying all but the structure settings from overworld.