public abstract class FakeMultiblockController extends java.lang.Object implements IMultiblockControllerInternal
| Constructor and Description |
|---|
FakeMultiblockController() |
| Modifier and Type | Method and Description |
|---|---|
void |
_onAssimilated(IMultiblockControllerInternal otherController)
Called when this machine is consumed by another controller.
|
void |
assimilate(IMultiblockControllerInternal other)
Assimilate another controller into this controller.
|
void |
attachBlock(IMultiblockComponent part)
Attach a new part to this machine.
|
void |
auditParts()
Checks all of the parts in the controller.
|
java.util.Set<IMultiblockComponent> |
checkForDisconnections()
Called when this machine may need to check for blocks that are no
longer physically connected to the reference coordinate.
|
void |
checkIfMachineIsWhole()
Check if the machine is whole or not.
|
void |
decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
Called when the save delegate's tile entity receiving a description packet
|
java.util.Set<IMultiblockComponent> |
detachAllBlocks()
Detach all parts.
|
void |
detachBlock(IMultiblockComponent part,
boolean chunkUnloading)
Call to detach a block from this machine.
|
void |
formatDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
Called when the save delegate's tile entity is being asked for its description packet
|
java.util.Collection<IMultiblockComponent> |
getComponents() |
IErrorLogic |
getErrorLogic() |
float |
getExactHumidity() |
float |
getExactTemperature() |
EnumHumidity |
getHumidity() |
java.lang.String |
getLastValidationError() |
net.minecraft.util.math.BlockPos |
getLastValidationErrorPosition() |
IOwnerHandler |
getOwnerHandler() |
java.lang.String |
getPartsListString() |
net.minecraft.util.math.BlockPos |
getReferenceCoord() |
EnumTemperature |
getTemperature() |
net.minecraft.world.World |
getWorldObj() |
boolean |
isAssembled() |
boolean |
isEmpty() |
void |
onAssimilated(IMultiblockControllerInternal assimilator)
Callback.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
readGuiData(PacketBufferForestry data) |
void |
reassemble()
Call to force the controller to check the multiblock's validity.
|
void |
recalculateMinMaxCoords()
Force this multiblock to recalculate its minimum and maximum coordinates
from the list of connected parts.
|
boolean |
shouldConsume(IMultiblockControllerInternal otherController)
Tests whether this multiblock should consume the other multiblock
and become the new multiblock master when the two multiblocks
are adjacent.
|
void |
updateMultiblockEntity()
Driver for the update loop.
|
void |
writeGuiData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnlocalizedTypepublic void attachBlock(IMultiblockComponent part)
IMultiblockControllerInternalattachBlock in interface IMultiblockControllerInternalpart - The part to add.public void detachBlock(IMultiblockComponent part, boolean chunkUnloading)
IMultiblockControllerInternaldetachBlock in interface IMultiblockControllerInternalpart - The part to detach from this machine.chunkUnloading - Is this entity detaching due to the chunk unloading? If true, the multiblock will be paused instead of broken.public void checkIfMachineIsWhole()
IMultiblockControllerInternalcheckIfMachineIsWhole in interface IMultiblockControllerInternalpublic void assimilate(IMultiblockControllerInternal other)
IMultiblockControllerInternalassimilate in interface IMultiblockControllerInternalother - The controller to merge into this one.public void _onAssimilated(IMultiblockControllerInternal otherController)
IMultiblockControllerInternal_onAssimilated in interface IMultiblockControllerInternalotherController - The controller consuming this controller.public void onAssimilated(IMultiblockControllerInternal assimilator)
IMultiblockControllerInternalonAssimilated in interface IMultiblockControllerInternalassimilator - The controller which has assimilated this controller.public void updateMultiblockEntity()
IMultiblockControllerInternalupdateMultiblockEntity in interface IMultiblockControllerInternalpublic net.minecraft.util.math.BlockPos getReferenceCoord()
getReferenceCoord in interface IMultiblockControllerInternalpublic void recalculateMinMaxCoords()
IMultiblockControllerInternalrecalculateMinMaxCoords in interface IMultiblockControllerInternalpublic void formatDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
IMultiblockControllerInternalformatDescriptionPacket in interface IMultiblockControllerInternaldata - A fresh compound tag to write your multiblock data intopublic void decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
IMultiblockControllerInternaldecodeDescriptionPacket in interface IMultiblockControllerInternaldata - A compound tag containing multiblock data to importpublic net.minecraft.world.World getWorldObj()
getWorldObj in interface IMultiblockControllerInternalpublic boolean isEmpty()
isEmpty in interface IMultiblockControllerInternalpublic boolean shouldConsume(IMultiblockControllerInternal otherController)
IMultiblockControllerInternalshouldConsume in interface IMultiblockControllerInternalotherController - The other multiblock controller.public java.lang.String getPartsListString()
getPartsListString in interface IMultiblockControllerInternalpublic void auditParts()
IMultiblockControllerInternalauditParts in interface IMultiblockControllerInternalpublic java.util.Set<IMultiblockComponent> checkForDisconnections()
IMultiblockControllerInternalcheckForDisconnections in interface IMultiblockControllerInternalpublic java.util.Set<IMultiblockComponent> detachAllBlocks()
IMultiblockControllerInternaldetachAllBlocks in interface IMultiblockControllerInternalpublic boolean isAssembled()
isAssembled in interface IMultiblockControllerpublic void reassemble()
IMultiblockControllerreassemble in interface IMultiblockControllerpublic java.lang.String getLastValidationError()
getLastValidationError in interface IMultiblockControllerpublic net.minecraft.util.math.BlockPos getLastValidationErrorPosition()
getLastValidationErrorPosition in interface IMultiblockControllerpublic java.util.Collection<IMultiblockComponent> getComponents()
getComponents in interface IMultiblockControllerpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in interface INbtReadablepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablepublic IOwnerHandler getOwnerHandler()
getOwnerHandler in interface IOwnedTilepublic EnumTemperature getTemperature()
getTemperature in interface IClimatisedpublic EnumHumidity getHumidity()
getHumidity in interface IClimatisedpublic float getExactTemperature()
getExactTemperature in interface IClimatisedpublic float getExactHumidity()
getExactHumidity in interface IClimatisedpublic IErrorLogic getErrorLogic()
getErrorLogic in interface IErrorLogicSourcepublic void writeGuiData(PacketBufferForestry data)
writeGuiData in interface IStreamableGuipublic void readGuiData(PacketBufferForestry data)
readGuiData in interface IStreamableGui