Interface IChunkmanagerCapability

All Known Implementing Classes:
IChunkmanagerCapability.Impl

public interface IChunkmanagerCapability
Capability for the colony tag for chunks
  • Method Details

    • getChunkStorage

      @Nullable ChunkLoadStorage getChunkStorage(int chunkX, int chunkZ)
      Get the chunkStorage at a certain location.
      Parameters:
      chunkX - the x chunk location.
      chunkZ - the z chunk location.
      Returns:
      the storage or null.
    • addChunkStorage

      boolean addChunkStorage(int chunkX, int chunkZ, ChunkLoadStorage storage)
      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.