public class MultiblockWorldRegistry
extends java.lang.Object
| Constructor and Description |
|---|
MultiblockWorldRegistry(net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeadController(IMultiblockControllerInternal deadController)
Registers a controller as dead.
|
void |
addDirtyController(IMultiblockControllerInternal dirtyController)
Registers a controller as dirty - its list of attached blocks has changed, and it
must be re-checked for assembly and, possibly, for orphans.
|
java.util.Set<IMultiblockControllerInternal> |
getControllers()
Use this only if you know what you're doing.
|
void |
onChunkLoaded(int chunkX,
int chunkZ)
Called when a chunk has finished loading.
|
void |
onPartAdded(IMultiblockComponent part)
Called when a multiblock part is added to the world, either via chunk-load or user action.
|
void |
onPartRemovedFromWorld(IMultiblockComponent part)
Called when a part is removed from the world, via user action or via chunk unloads.
|
void |
onWorldUnloaded()
Called when the world which this World Registry represents is fully unloaded from the system.
|
void |
processMultiblockChanges()
Called prior to processing multiblock controllers.
|
void |
tickStart()
Called before Tile Entities are ticked in the world.
|
public MultiblockWorldRegistry(net.minecraft.world.World world)
public void tickStart()
public void processMultiblockChanges()
public void onPartAdded(IMultiblockComponent part)
part - The part which is being added to this world.public void onPartRemovedFromWorld(IMultiblockComponent part)
part - The part which is being removed.public void onWorldUnloaded()
public void onChunkLoaded(int chunkX,
int chunkZ)
chunkX - Chunk X coordinate (world coordate >> 4) of the chunk that was loadedchunkZ - Chunk Z coordinate (world coordate >> 4) of the chunk that was loadedpublic void addDeadController(IMultiblockControllerInternal deadController)
deadController - The controller which is dead.public void addDirtyController(IMultiblockControllerInternal dirtyController)
dirtyController - The dirty controller.public java.util.Set<IMultiblockControllerInternal> getControllers()