Package com.minecolonies.api.colony
Interface IChunkmanagerCapability
- All Known Implementing Classes:
IChunkmanagerCapability.Impl
public interface IChunkmanagerCapability
Capability for the colony tag for chunks
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe implementation of the colonyTagCapability.static classThe storage class of the capability. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChunkStorage(int chunkX, int chunkZ, ChunkLoadStorage storage) Add a new chunkStorage.Map<net.minecraft.world.level.ChunkPos,ChunkLoadStorage> Get all chunk storages for serialization.getChunkStorage(int chunkX, int chunkZ) Get the chunkStorage at a certain location.
-
Method Details
-
getChunkStorage
Get the chunkStorage at a certain location.- Parameters:
chunkX- the x chunk location.chunkZ- the z chunk location.- Returns:
- the storage or null.
-
addChunkStorage
Add a new chunkStorage.- Parameters:
chunkX- chunkX the x chunk location.chunkZ- chunkX the z chunk location.storage- the new to add or update.- Returns:
- true if override else false.
-
getAllChunkStorages
Map<net.minecraft.world.level.ChunkPos,ChunkLoadStorage> getAllChunkStorages()Get all chunk storages for serialization.- Returns:
- the storages.
-