|
28 | 28 | import net.minecraft.world.level.levelgen.WorldGenSettings;
|
29 | 29 |
|
30 | 30 | /**
|
31 |
| - * The registry for dynamic worlds. |
| 31 | + * The registry for dynamic levels. |
32 | 32 | * Cast {@link net.minecraft.server.MinecraftServer} to this class to access the registry.
|
33 | 33 | * It is not possible to access the registry from the client.
|
34 | 34 | *
|
35 | 35 | * @since 0.1.0
|
36 | 36 | */
|
37 |
| -public interface DynamicWorldRegistry { |
| 37 | +public interface DynamicLevelRegistry { |
38 | 38 | /**
|
39 |
| - * Registers a new world and updates all clients with the new world. |
40 |
| - * NOTE: The world will not be loaded until the next tick. |
| 39 | + * Registers a new level and updates all clients with the new level. |
| 40 | + * NOTE: The level will not be loaded until the next tick. |
41 | 41 | *
|
42 |
| - * @param id The ID of the world. |
| 42 | + * @param id The ID of the level. |
43 | 43 | * This ID must be unique and unused in the {@link net.minecraft.core.Registry#DIMENSION_TYPE_REGISTRY} registry and the {@link WorldGenSettings#dimensions()} registry.
|
44 |
| - * @param stem The dimension stem for the world. |
45 |
| - * @param type The dimension type of the world. |
| 44 | + * @param stem The dimension stem for the level. |
| 45 | + * @param type The dimension type of the level. |
46 | 46 | * @since 0.1.0
|
47 | 47 | */
|
48 |
| - void addDynamicWorld(ResourceLocation id, LevelStem stem, DimensionType type); |
| 48 | + void addDynamicLevel(ResourceLocation id, LevelStem stem, DimensionType type); |
49 | 49 |
|
50 | 50 | /**
|
51 |
| - * Tests if a world with the given ID exists. |
| 51 | + * Tests if a level with the given ID exists. |
52 | 52 | *
|
53 |
| - * @param id The ID of the world. |
54 |
| - * @return True if the world exists, false otherwise. |
55 |
| - * If the world exists, you should not call {@link #addDynamicWorld(ResourceLocation, LevelStem, DimensionType)} with the same ID. |
| 53 | + * @param id The ID of the level. |
| 54 | + * @return True if the level exists, false otherwise. |
| 55 | + * If the level exists, you should not call {@link #addDynamicLevel(ResourceLocation, LevelStem, DimensionType)} with the same ID. |
56 | 56 | * @since 0.1.0
|
57 | 57 | */
|
58 |
| - boolean worldExists(ResourceLocation id); |
| 58 | + boolean levelExists(ResourceLocation id); |
59 | 59 |
|
60 | 60 | /**
|
61 |
| - * Returns whether a world with the given ID can be created. |
| 61 | + * Returns whether a level with the given ID can be created. |
62 | 62 | *
|
63 |
| - * @param id The ID of the world. |
64 |
| - * @return {@code true} if the world can be created, {@code false} otherwise. |
| 63 | + * @param id The ID of the level. |
| 64 | + * @return {@code true} if the level can be created, {@code false} otherwise. |
65 | 65 | * @since 0.1.0
|
66 | 66 | */
|
67 |
| - boolean canCreateWorld(ResourceLocation id); |
| 67 | + boolean canCreateLevel(ResourceLocation id); |
68 | 68 |
|
69 | 69 | /**
|
70 |
| - * Returns whether a world with the given ID can be deleted. |
| 70 | + * Returns whether a level with the given ID can be deleted. |
71 | 71 | *
|
72 |
| - * @param id The ID of the world. |
73 |
| - * @return {@code true} if the world can be deleted, {@code false} otherwise. |
| 72 | + * @param id The ID of the level. |
| 73 | + * @return {@code true} if the level can be deleted, {@code false} otherwise. |
74 | 74 | * @since 0.1.0
|
75 | 75 | */
|
76 |
| - boolean canDestroyWorld(ResourceLocation id); |
| 76 | + boolean canDestroyLevel(ResourceLocation id); |
77 | 77 |
|
78 | 78 | /**
|
79 |
| - * Erases a dynamic world from existence. |
80 |
| - * Players will be removed from the world using the provided player remover. |
| 79 | + * Erases a dynamic level from existence. |
| 80 | + * Players will be removed from the level using the provided player remover. |
81 | 81 | *
|
82 |
| - * @param id The ID of the world. |
83 |
| - * @param remover The method to remove players from the world. |
| 82 | + * @param id The ID of the level. |
| 83 | + * @param remover The method to remove players from the level. |
84 | 84 | * @since 0.1.0
|
85 | 85 | */
|
86 |
| - void removeDynamicWorld(ResourceLocation id, PlayerRemover remover); |
| 86 | + void removeDynamicLevel(ResourceLocation id, PlayerRemover remover); |
87 | 87 | }
|
0 commit comments