net.minecraftforge.common
Interface ForgeChunkManager.LoadingCallback

All Known Subinterfaces:
ForgeChunkManager.OrderedLoadingCallback, ForgeChunkManager.PlayerOrderedLoadingCallback
Enclosing class:
ForgeChunkManager

public static interface ForgeChunkManager.LoadingCallback

All mods requiring chunkloading need to implement this to handle the re-registration of chunk tickets at world loading time

Author:
cpw

Method Summary
 void ticketsLoaded(List<ForgeChunkManager.Ticket> tickets, World world)
          Called back when tickets are loaded from the world to allow the mod to re-register the chunks associated with those tickets.
 

Method Detail

ticketsLoaded

void ticketsLoaded(List<ForgeChunkManager.Ticket> tickets,
                   World world)
Called back when tickets are loaded from the world to allow the mod to re-register the chunks associated with those tickets. The list supplied here is truncated to length prior to use. Tickets unwanted by the mod must be disposed of manually unless the mod is an OrderedLoadingCallback instance in which case, they will have been disposed of by the earlier callback.

Parameters:
tickets - The tickets to re-register. The list is immutable and cannot be manipulated directly. Copy it first.
world - the world