Package | Description |
---|---|
net.minecraft.world | |
net.minecraftforge.common |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSetMultimap<ChunkPos,ForgeChunkManager.Ticket> |
World.getPersistentChunks()
Get the persistent chunks for this world
|
Modifier and Type | Field and Description |
---|---|
private ForgeChunkManager.Ticket |
ForgeChunkManager.ForceChunkEvent.ticket |
private ForgeChunkManager.Ticket |
ForgeChunkManager.UnforceChunkEvent.ticket |
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<World,com.google.common.collect.ImmutableSetMultimap<ChunkPos,ForgeChunkManager.Ticket>> |
ForgeChunkManager.forcedChunks |
private static com.google.common.collect.BiMap<java.util.UUID,ForgeChunkManager.Ticket> |
ForgeChunkManager.pendingEntities |
private static com.google.common.collect.SetMultimap<java.lang.String,ForgeChunkManager.Ticket> |
ForgeChunkManager.playerTickets |
private static java.util.Map<World,com.google.common.collect.Multimap<java.lang.String,ForgeChunkManager.Ticket>> |
ForgeChunkManager.tickets |
Modifier and Type | Method and Description |
---|---|
ForgeChunkManager.Ticket |
ForgeChunkManager.ForceChunkEvent.getTicket() |
ForgeChunkManager.Ticket |
ForgeChunkManager.UnforceChunkEvent.getTicket() |
static ForgeChunkManager.Ticket |
ForgeChunkManager.requestPlayerTicket(java.lang.Object mod,
java.lang.String player,
World world,
ForgeChunkManager.Type type) |
static ForgeChunkManager.Ticket |
ForgeChunkManager.requestTicket(java.lang.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<ChunkPos,ForgeChunkManager.Ticket> |
ForgeChunkManager.getPersistentChunksFor(World world)
The list of persistent chunks in the world.
|
com.google.common.collect.ListMultimap<java.lang.String,ForgeChunkManager.Ticket> |
ForgeChunkManager.PlayerOrderedLoadingCallback.playerTicketsLoaded(com.google.common.collect.ListMultimap<java.lang.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.
|
java.util.List<ForgeChunkManager.Ticket> |
ForgeChunkManager.OrderedLoadingCallback.ticketsLoaded(java.util.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,
ChunkPos 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,
ChunkPos 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,
ChunkPos chunk)
Unforce the supplied chunk, allowing it to be unloaded and stop ticking.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<java.lang.String,ForgeChunkManager.Ticket> |
ForgeChunkManager.PlayerOrderedLoadingCallback.playerTicketsLoaded(com.google.common.collect.ListMultimap<java.lang.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(java.util.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.
|
java.util.List<ForgeChunkManager.Ticket> |
ForgeChunkManager.OrderedLoadingCallback.ticketsLoaded(java.util.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 |
---|
ForceChunkEvent(ForgeChunkManager.Ticket ticket,
ChunkPos location) |
UnforceChunkEvent(ForgeChunkManager.Ticket ticket,
ChunkPos location) |