You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Registers a new dimension and updates all clients with the new dimension.
89
-
* If world data already exists for this dimension it may be deleted
90
-
* NOTE: The dimension may not be loaded until the next tick.
90
+
* If world data already exists for this dimension it will be overwritten.
91
91
*
92
92
* @param chunkGenerator The chunk generator.
93
93
* @param id The ID of the dimension.
94
94
* This ID must be unique and unused in the {@link net.minecraft.core.registries.Registries#DIMENSION_TYPE} registry and the {@link net.minecraft.world.level.levelgen.WorldDimensions#dimensions()} registry.
95
95
* @param type The dimension type.
96
-
* @return whether a dimension with the given id was created
96
+
* @return the server level of the new dimension if successful, {@code null} otherwise.
97
+
* @see #loadDynamicDimension(ResourceLocation, ChunkGenerator, DimensionType) if you want to load previous data
98
+
* @implNote The dimension may not be loaded until the next tick.
* Registers a new dimension and updates all clients with the new dimension.
103
-
* If world data already exists for this dimension it will be used, otherwise it will be generated
104
-
* NOTE: The dimension will not be loaded until the next tick.
105
+
* If world data already exists for this dimension it will be used, otherwise it will be created.
105
106
*
106
107
* @param chunkGenerator The chunk generator.
107
108
* @param id The ID of the dimension.
108
-
* This ID must be unique and unused in the {@link net.minecraft.core.registries.Registries#DIMENSION_TYPE} registry and the {@link net.minecraft.world.level.levelgen.WorldDimensions#dimensions()} registry.
109
+
* This ID must be unique and unused in the {@link net.minecraft.core.registries.Registries#DIMENSION_TYPE dimension type} registry
110
+
* and the {@link net.minecraft.world.level.levelgen.WorldDimensions#dimensions() dimensions} registry.
109
111
* @param type The dimension type.
110
-
* @return whether a dimension with the given id was created
112
+
* @return the server level of the new dimension if successful, {@code null} otherwise.
113
+
* @implNote The dimension may not be loaded until the next tick.
Copy file name to clipboardexpand all lines: common/src/main/java/dev/galacticraft/dynamicdimensions/impl/client/network/DynamicDimensionsS2CPacketReceivers.java
0 commit comments