@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
public class CubicChunkManager
extends java.lang.Object
ForgeChunkManager| Constructor and Description |
|---|
CubicChunkManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
forceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
Force the supplied chunk coordinate to be loaded by the supplied ticket.
|
static int |
getCubeDepthFor(java.lang.String modId) |
static net.minecraftforge.common.ForgeChunkManager.Ticket |
makeTicket(java.lang.String str,
net.minecraftforge.common.ForgeChunkManager.Type type,
net.minecraft.world.World world) |
static void |
onDeserializeTicket(net.minecraft.nbt.NBTTagCompound ticketNBT,
net.minecraftforge.common.ForgeChunkManager.Ticket ticket) |
static void |
onForgeChunkManagerForceChunk(net.minecraftforge.common.ForgeChunkManager.ForceChunkEvent event) |
static void |
onForgeChunkManagerUnforceChunk(net.minecraftforge.common.ForgeChunkManager.UnforceChunkEvent event) |
static void |
onLoadEntityTicketChunk(net.minecraft.world.World world,
net.minecraftforge.common.ForgeChunkManager.Ticket tick) |
static void |
onSerializeTicket(net.minecraft.nbt.NBTTagCompound ticket,
net.minecraftforge.common.ForgeChunkManager.Ticket tick) |
static void |
reorderChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos 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 |
unforceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
Unforce the supplied chunk, allowing it to be unloaded and stop ticking.
|
public static void forceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ForgeChunkManager.Ticket#maxDepth is
exceeded, the least
recently registered chunk is unforced and may be unloaded.
It is safe to force the chunk several times for a ticket, it will not generate duplication or change the ordering.ticket - The ticket registering the chunkchunk - The chunk to forcepublic static void reorderChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ticket - The ticket holding the chunk listchunk - The chunk you wish to push to the end (so that it would be unloaded last)public static void unforceChunk(net.minecraftforge.common.ForgeChunkManager.Ticket ticket,
CubePos chunk)
ticket - The ticket holding the chunkchunk - The chunk to unforcepublic static net.minecraftforge.common.ForgeChunkManager.Ticket makeTicket(java.lang.String str,
net.minecraftforge.common.ForgeChunkManager.Type type,
net.minecraft.world.World world)
public static void onDeserializeTicket(net.minecraft.nbt.NBTTagCompound ticketNBT,
net.minecraftforge.common.ForgeChunkManager.Ticket ticket)
public static void onSerializeTicket(net.minecraft.nbt.NBTTagCompound ticket,
net.minecraftforge.common.ForgeChunkManager.Ticket tick)
public static void onLoadEntityTicketChunk(net.minecraft.world.World world,
net.minecraftforge.common.ForgeChunkManager.Ticket tick)
public static void onForgeChunkManagerForceChunk(net.minecraftforge.common.ForgeChunkManager.ForceChunkEvent event)
public static void onForgeChunkManagerUnforceChunk(net.minecraftforge.common.ForgeChunkManager.UnforceChunkEvent event)
public static int getCubeDepthFor(java.lang.String modId)