public class MultiblockRegistry
extends java.lang.Object
| Constructor and Description |
|---|
MultiblockRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDeadController(net.minecraft.world.World world,
IMultiblockControllerInternal controller)
Call to mark a controller as dead.
|
static void |
addDirtyController(net.minecraft.world.World world,
IMultiblockControllerInternal controller)
Call to mark a controller as dirty.
|
static java.util.Set<IMultiblockControllerInternal> |
getControllersFromWorld(net.minecraft.world.World world) |
static void |
onChunkLoaded(net.minecraft.world.World world,
int chunkX,
int chunkZ)
Called when the world has finished loading a chunk.
|
static void |
onPartAdded(net.minecraft.world.World world,
IMultiblockComponent part)
Register a new part in the system.
|
static void |
onPartRemovedFromWorld(net.minecraft.world.World world,
IMultiblockComponent part)
Call to remove a part from world lists.
|
static void |
onWorldUnloaded(net.minecraft.world.World world)
Called whenever a world is unloaded.
|
static void |
tickStart(net.minecraft.world.World world)
Called before Tile Entities are ticked in the world.
|
public static void tickStart(net.minecraft.world.World world)
world - The world being tickedpublic static void onChunkLoaded(net.minecraft.world.World world,
int chunkX,
int chunkZ)
world - The world which has finished loading a chunkchunkX - The X coordinate of the chunkchunkZ - The Z coordinate of the chunkpublic static void onPartAdded(net.minecraft.world.World world,
IMultiblockComponent part)
world - The world into which this part is loading.part - The part being loaded.public static void onPartRemovedFromWorld(net.minecraft.world.World world,
IMultiblockComponent part)
world - The world from which a multiblock part is being removed.part - The part being removed.public static void onWorldUnloaded(net.minecraft.world.World world)
world - The world being unloaded.public static void addDirtyController(net.minecraft.world.World world,
IMultiblockControllerInternal controller)
world - The world containing the multiblockcontroller - The dirty controllerpublic static void addDeadController(net.minecraft.world.World world,
IMultiblockControllerInternal controller)
world - The world formerly containing the multiblockcontroller - The dead controllerpublic static java.util.Set<IMultiblockControllerInternal> getControllersFromWorld(net.minecraft.world.World world)
world - The world whose controllers you wish to retrieve.