java.lang.Object
ovh.paulem.arcana.regions.container.GlobalBlockContainer<S,K>
- Type Parameters:
S- the type of the object to trackK- the key used to identify the object
A container that holds all the block containers for all worlds.
This increases performance when dealing with many worlds, chunks and sections and avoid iterating over every single object.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllHolders(Class<T> type) getOrCreateWorldContainer(UUID worldId) getOrCreateWorldContainer(org.bukkit.World world) @Nullable WorldBlockContainer<S, K> getWorldContainer(UUID worldId) @Nullable WorldBlockContainer<S, K> getWorldContainer(org.bukkit.World world) static <S extends Tracked<K>,K extends WorldKey>
GlobalBlockContainer<S, K> of()voidremoveHolder(K key) voidremoveWorldContainer(UUID worldId) void
-
Method Details
-
of
-
getWorldContainer
-
getOrCreateWorldContainer
-
removeWorldContainer
-
getWorldContainer
-
getOrCreateWorldContainer
-
getHolder
-
setHolder
-
removeHolder
-
getAllHolders
-
getAllHolders
-