mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Command work, and Added TileEntityType as a Forge Registry.
This commit is contained in:
1 parent
3f743887e7
commit
b4c23aba8e
22 files changed
+396
-2758
No files matched your search
@@ -29,6 +29,7 @@ import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||
@@ -207,6 +208,11 @@ public class DimensionManager
|
||||
return worlds.keySet().toArray(new Integer[0]); // Only loaded dims, since usually used to cycle through loaded worlds
|
||||
}
|
||||
|
||||
public static Stream<Integer> getIDStream()
|
||||
{
|
||||
return worlds.keySet().stream();
|
||||
}
|
||||
|
||||
public static void setWorld(int id, @Nullable WorldServer world, MinecraftServer server)
|
||||
{
|
||||
if (world != null)
|
||||
|
||||
Reference in new issue
Block a user