@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
public class AsyncWorldIOExecutor
extends java.lang.Object
| Constructor and Description |
|---|
AsyncWorldIOExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canDropColumn(net.minecraft.world.World world,
int x,
int z) |
static void |
dropQueuedColumnLoad(net.minecraft.world.World world,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> runnable)
Notify the loader that this column isn't needed anymore
|
static void |
dropQueuedCubeLoad(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.function.Consumer<Cube> runnable)
Notify the loader that this cube isn't needed anymore
|
static void |
onPlayerLoggedIn(net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent evt) |
static void |
onPlayerLoggedOut(net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent evt) |
static void |
onWorldTick(net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent evt) |
static void |
queueColumnLoad(net.minecraft.world.World world,
ICubeIO loader,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> runnable,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> setLoadingColumnCallback)
Queue a column load, running the specified callback when the load has finished
|
static void |
queueCubeLoad(net.minecraft.world.World world,
ICubeIO loader,
CubeProviderServer cache,
int x,
int y,
int z,
java.util.function.Consumer<Cube> runnable)
Queue a cube load, running the specified callback when the load has finished.
|
static void |
shutdownNowBlocking() |
static net.minecraft.world.chunk.Chunk |
syncColumnLoad(net.minecraft.world.World world,
ICubeIO loader,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> setLoadingColumnCallback)
Load a column, directly
|
static Cube |
syncCubeLoad(net.minecraft.world.World world,
ICubeIO loader,
CubeProviderServer cache,
int cubeX,
int cubeY,
int cubeZ)
Load a cube, directly.
|
static void |
tick()
Run a synchronous tick, finishing the loading process for load tasks that are ready
|
@Nullable public static Cube syncCubeLoad(net.minecraft.world.World world, ICubeIO loader, CubeProviderServer cache, int cubeX, int cubeY, int cubeZ)
world - The world in which the cube liesloader - The file loader for cubescache - the cube cache used to load cubes and columnscubeX - X coordinate of the cube to loadcubeY - Y coordinate of the cube to loadcubeZ - Z coordinate of the cube to load@Nullable
public static net.minecraft.world.chunk.Chunk syncColumnLoad(net.minecraft.world.World world,
ICubeIO loader,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> setLoadingColumnCallback)
world - The world in which the column liesloader - The file loader for columnsx - column x positionz - column z positionsetLoadingColumnCallback - callback to run just before and after the load event is postedpublic static void queueCubeLoad(net.minecraft.world.World world,
ICubeIO loader,
CubeProviderServer cache,
int x,
int y,
int z,
java.util.function.Consumer<Cube> runnable)
world - The world of the cubeloader - The file loader for this worldcache - The server cube cachex - cube x positiony - cube y positionz - cube z positionrunnable - The callbackpublic static void queueColumnLoad(net.minecraft.world.World world,
ICubeIO loader,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> runnable,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> setLoadingColumnCallback)
world - The world of the columnloader - The file loader for this worldx - column x positionz - column z positionrunnable - The callbacksetLoadingColumnCallback - callback to run just before and after the load event is postedpublic static void dropQueuedCubeLoad(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.function.Consumer<Cube> runnable)
world - The worldx - cube x positiony - cube y positionz - cube z positionrunnable - The runnable that should be droppedpublic static void dropQueuedColumnLoad(net.minecraft.world.World world,
int x,
int z,
java.util.function.Consumer<net.minecraft.world.chunk.Chunk> runnable)
world - The worldx - column x positionz - column z postionrunnable - The runnable that should be droppedpublic static void shutdownNowBlocking()
public static void tick()
public static boolean canDropColumn(net.minecraft.world.World world,
int x,
int z)
public static void onPlayerLoggedIn(@Nonnull
net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent evt)
public static void onPlayerLoggedOut(@Nonnull
net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent evt)
public static void onWorldTick(net.minecraftforge.fml.common.gameevent.TickEvent.WorldTickEvent evt)