Package | Description |
---|---|
net.minecraft.world | |
net.minecraftforge.common |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> |
World.getPersistentChunks()
Get the persistent chunks for this world
|
Modifier and Type | Field and Description |
---|---|
ForgeChunkManager.Ticket |
ForgeChunkManager.ForceChunkEvent.ticket |
ForgeChunkManager.Ticket |
ForgeChunkManager.UnforceChunkEvent.ticket |
Modifier and Type | Method and Description |
---|---|
static ForgeChunkManager.Ticket |
ForgeChunkManager.requestPlayerTicket(Object mod,
String player,
World world,
ForgeChunkManager.Type type) |
static ForgeChunkManager.Ticket |
ForgeChunkManager.requestTicket(Object mod,
World world,
ForgeChunkManager.Type type)
Request a chunkloading ticket of the appropriate type for the supplied mod
|
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ImmutableSetMultimap<ChunkCoordIntPair,ForgeChunkManager.Ticket> |
ForgeChunkManager.getPersistentChunksFor(World world)
The list of persistent chunks in the world.
|
com.google.common.collect.ListMultimap<String,ForgeChunkManager.Ticket> |
ForgeChunkManager.PlayerOrderedLoadingCallback.playerTicketsLoaded(com.google.common.collect.ListMultimap<String,ForgeChunkManager.Ticket> tickets,
World world)
Called back when tickets are loaded from the world to allow the
mod to decide if it wants the ticket still.
|
List<ForgeChunkManager.Ticket> |
ForgeChunkManager.OrderedLoadingCallback.ticketsLoaded(List<ForgeChunkManager.Ticket> tickets,
World world,
int maxTicketCount)
Called back when tickets are loaded from the world to allow the
mod to decide if it wants the ticket still, and prioritise overflow
based on the ticket count.
|
Modifier and Type | Method and Description |
---|---|
static void |
ForgeChunkManager.forceChunk(ForgeChunkManager.Ticket ticket,
ChunkCoordIntPair chunk)
Force the supplied chunk coordinate to be loaded by the supplied ticket.
|
static void |
ForgeChunkManager.releaseTicket(ForgeChunkManager.Ticket ticket)
Release the ticket back to the system.
|
static void |
ForgeChunkManager.reorderChunk(ForgeChunkManager.Ticket ticket,
ChunkCoordIntPair chunk)
Reorganize the internal chunk list so that the chunk supplied is at the *end* of the list
This helps if you wish to guarantee a certain "automatic unload ordering" for the chunks
in the ticket list
|
static void |
ForgeChunkManager.unforceChunk(ForgeChunkManager.Ticket ticket,
ChunkCoordIntPair chunk)
Unforce the supplied chunk, allowing it to be unloaded and stop ticking.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<String,ForgeChunkManager.Ticket> |
ForgeChunkManager.PlayerOrderedLoadingCallback.playerTicketsLoaded(com.google.common.collect.ListMultimap<String,ForgeChunkManager.Ticket> tickets,
World world)
Called back when tickets are loaded from the world to allow the
mod to decide if it wants the ticket still.
|
void |
ForgeChunkManager.LoadingCallback.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.
|
List<ForgeChunkManager.Ticket> |
ForgeChunkManager.OrderedLoadingCallback.ticketsLoaded(List<ForgeChunkManager.Ticket> tickets,
World world,
int maxTicketCount)
Called back when tickets are loaded from the world to allow the
mod to decide if it wants the ticket still, and prioritise overflow
based on the ticket count.
|
Constructor and Description |
---|
ForgeChunkManager.ForceChunkEvent(ForgeChunkManager.Ticket ticket,
ChunkCoordIntPair location) |
ForgeChunkManager.UnforceChunkEvent(ForgeChunkManager.Ticket ticket,
ChunkCoordIntPair location) |