Search in sources :

Example 1 with ServerChunkManagerInterface

use of carpet.fakes.ServerChunkManagerInterface in project fabric-carpet by gnembon.

the class SpawnChunks method changeSpawnChunks.

public static void changeSpawnChunks(ServerChunkCache chunkManager, ChunkPos pos, int size) {
    DistanceManager ticketManager = ((ServerChunkManagerInterface) chunkManager).getCMTicketManager();
    ((ChunkTicketManagerInterface) ticketManager).changeSpawnChunks(pos, size);
}
Also used : ChunkTicketManagerInterface(carpet.fakes.ChunkTicketManagerInterface) DistanceManager(net.minecraft.server.level.DistanceManager) ServerChunkManagerInterface(carpet.fakes.ServerChunkManagerInterface)

Aggregations

ChunkTicketManagerInterface (carpet.fakes.ChunkTicketManagerInterface)1 ServerChunkManagerInterface (carpet.fakes.ServerChunkManagerInterface)1 DistanceManager (net.minecraft.server.level.DistanceManager)1