Search in sources :

Example 16 with ParallelUniverse

use of thpmc.vanilla_source.api.world.parallel.ParallelUniverse in project VanillaSource by TheHollowPlanetMC.

the class ImplVanillaSourceAPI method removeUniverse.

@Override
public void removeUniverse(String universeName) {
    ParallelUniverse universe = getUniverse(universeName);
    if (universe != null)
        ((ImplParallelUniverse) universe).getPlayers().forEach(player -> player.setUniverse(null));
    universeMap.remove(universeName);
}
Also used : JavaPlugin(org.bukkit.plugin.java.JavaPlugin) TimeUnit(java.util.concurrent.TimeUnit) Nullable(org.jetbrains.annotations.Nullable) NMSManager(thpmc.vanilla_source.nms.NMSManager) ParallelUniverse(thpmc.vanilla_source.api.world.parallel.ParallelUniverse) INMSHandler(thpmc.vanilla_source.api.nms.INMSHandler) Collection(java.util.Collection) Map(java.util.Map) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) Set(java.util.Set) VanillaSourceAPI(thpmc.vanilla_source.api.VanillaSourceAPI) NotNull(org.jetbrains.annotations.NotNull) ParallelUniverse(thpmc.vanilla_source.api.world.parallel.ParallelUniverse)

Aggregations

ParallelUniverse (thpmc.vanilla_source.api.world.parallel.ParallelUniverse)16 ParallelWorld (thpmc.vanilla_source.api.world.parallel.ParallelWorld)12 World (org.bukkit.World)7 ParallelChunk (thpmc.vanilla_source.api.world.parallel.ParallelChunk)6 BlockData (org.bukkit.block.data.BlockData)4 Player (org.bukkit.entity.Player)3 EnginePlayer (thpmc.vanilla_source.api.player.EnginePlayer)3 SectionTypeArray (thpmc.vanilla_source.util.SectionTypeArray)3 List (java.util.List)2 BlockPosition (net.minecraft.server.v1_15_R1.BlockPosition)2 ChunkSnapshot (org.bukkit.ChunkSnapshot)2 Block (org.bukkit.block.Block)2 CraftBlockData (org.bukkit.craftbukkit.v1_15_R1.block.data.CraftBlockData)2 VanillaSourceAPI (thpmc.vanilla_source.api.VanillaSourceAPI)2 BlockPosition3i (thpmc.vanilla_source.util.BlockPosition3i)2 SectionLevelArray (thpmc.vanilla_source.util.SectionLevelArray)2 be4rjp.artgui.button (be4rjp.artgui.button)1 Artist (be4rjp.artgui.frame.Artist)1 ArtMenu (be4rjp.artgui.menu.ArtMenu)1 IncompleteRegionException (com.sk89q.worldedit.IncompleteRegionException)1