Package net.minecraftforge.debug.world
Class DimensionSettingsTest
- java.lang.Object
-
- net.minecraftforge.debug.world.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
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
static java.lang.String
MODID
static ResourceLocation
TEST_OVERWORLD
-
Constructor Summary
Constructors Constructor Description DimensionSettingsTest()
-
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.
-
-
-
Field Detail
-
MODID
public static final java.lang.String MODID
- See Also:
- Constant Field Values
-
TEST_OVERWORLD
public static final ResourceLocation TEST_OVERWORLD
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
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.
-
-