public class AlvearyController extends RectangularMultiblockControllerBase implements IAlvearyControllerInternal, IClimateControlled
MultiblockControllerBase.AssemblyStateassemblyState, connectedParts, world| Constructor and Description |
|---|
AlvearyController(net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHumidityChange(float change,
float boundaryDown,
float boundaryUp)
Change the humidity, but not lower than boundaryDown or higher than boundaryUp.
|
void |
addTemperatureChange(float change,
float boundaryDown,
float boundaryUp)
Change the temperature, but not lower than boundaryDown or higher than boundaryUp.
|
boolean |
canBlockSeeTheSky() |
void |
decodeDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
Called when the save delegate's tile entity receiving a description packet
|
void |
formatDescriptionPacket(net.minecraft.nbt.NBTTagCompound data)
Called when the save delegate's tile entity is being asked for its description packet
|
net.minecraft.util.math.Vec3d |
getBeeFXCoordinates() |
IBeeHousingInventory |
getBeeInventory() |
IBeekeepingLogic |
getBeekeepingLogic() |
java.lang.Iterable<IBeeListener> |
getBeeListeners()
Used by
IBeeRoot.createBeeHousingListener(IBeeHousing)
to combine bee listeners from several sources that can change over time. |
java.lang.Iterable<IBeeModifier> |
getBeeModifiers()
Used by
IBeeRoot.createBeeHousingModifier(IBeeHousing)
to combine bee modifiers from several sources that can change over time. |
net.minecraft.world.biome.Biome |
getBiome() |
int |
getBlockLightValue() |
IClimateListener |
getClimateListener() |
net.minecraft.util.math.BlockPos |
getCoordinates()
The coordinates of the housing.
|
float |
getExactHumidity() |
float |
getExactTemperature() |
int |
getHealthScaled(int i) |
EnumHumidity |
getHumidity() |
IInventoryAdapter |
getInternalInventory() |
com.mojang.authlib.GameProfile |
getOwner() |
EnumTemperature |
getTemperature() |
java.lang.String |
getUnlocalizedType() |
protected void |
isGoodForExteriorLevel(IMultiblockComponent part,
int level) |
protected void |
isGoodForInterior(IMultiblockComponent part) |
protected void |
isMachineWhole()
Checks if a machine is whole.
|
boolean |
isRaining() |
protected void |
onAssimilate(IMultiblockControllerInternal assimilated)
Callback.
|
void |
onAssimilated(IMultiblockControllerInternal assimilator)
Callback.
|
void |
onAttachedPartWithMultiblockData(IMultiblockComponent part,
net.minecraft.nbt.NBTTagCompound data)
Call when a block with cached save-delegate data is added to the multiblock.
|
protected void |
onBlockAdded(IMultiblockComponent newPart)
Called when a new part is added to the machine.
|
protected void |
onBlockRemoved(IMultiblockComponent oldPart)
Called when a part is removed from the machine.
|
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
readGuiData(PacketBufferForestry data) |
protected void |
updateClient(int tickCount)
Client-side update loop.
|
protected boolean |
updateServer(int tickCount)
The server-side update loop! Use this similarly to a TileEntity's update loop.
|
void |
writeGuiData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
getSizeLimitscanExtractItem, canInsertItem, clear, closeInventory, decrStackSize, getDisplayName, getErrorLogic, getField, getFieldCount, getInventoryStackLimit, getName, getOwnerHandler, getSizeInventory, getSlotsForFace, getStackInSlot, getWorldObj, hasCustomName, isItemValidForSlot, isUsableByPlayer, markDirty, onMachineAssembled, openInventory, removeStackFromSlot, setField, setInventorySlotContents_onAssimilated, assimilate, attachBlock, auditParts, checkForDisconnections, checkIfMachineIsWhole, detachAllBlocks, detachBlock, getCenterCoord, getComponents, getLastValidationError, getLastValidationErrorPosition, getMaximumCoord, getMinimumCoord, getNumConnectedBlocks, getPartsListString, getReferenceCoord, getTickCount, getTopCenterCoord, isAssembled, isBlockGoodForExteriorLevel, isBlockGoodForInterior, isCoordInMultiblock, isEmpty, onMachineDisassembled, onMachinePaused, onMachineRestored, reassemble, recalculateMinMaxCoords, shouldConsume, updateMultiblockEntity, updateOnIntervalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorLogicgetWorldObj_onAssimilated, assimilate, attachBlock, auditParts, checkForDisconnections, checkIfMachineIsWhole, detachAllBlocks, detachBlock, getPartsListString, getReferenceCoord, getWorldObj, isEmpty, recalculateMinMaxCoords, shouldConsume, updateMultiblockEntitygetComponents, getLastValidationError, getLastValidationErrorPosition, isAssembled, reassemblegetOwnerHandlerpublic IBeeHousingInventory getBeeInventory()
getBeeInventory in interface IBeeHousingpublic IBeekeepingLogic getBeekeepingLogic()
getBeekeepingLogic in interface IBeeHousingpublic IInventoryAdapter getInternalInventory()
getInternalInventory in interface IAlvearyControllerInternalgetInternalInventory in class MultiblockControllerForestrypublic IClimateListener getClimateListener()
getClimateListener in interface IAlvearyControllerInternalpublic java.lang.Iterable<IBeeListener> getBeeListeners()
IBeeHousingIBeeRoot.createBeeHousingListener(IBeeHousing)
to combine bee listeners from several sources that can change over time.getBeeListeners in interface IBeeHousingpublic java.lang.Iterable<IBeeModifier> getBeeModifiers()
IBeeHousingIBeeRoot.createBeeHousingModifier(IBeeHousing)
to combine bee modifiers from several sources that can change over time.getBeeModifiers in interface IBeeHousingpublic void onAttachedPartWithMultiblockData(IMultiblockComponent part, net.minecraft.nbt.NBTTagCompound data)
MultiblockControllerBaseonAttachedPartWithMultiblockData in class MultiblockControllerBasepart - The NBT tag containing this controller's data.protected void onBlockAdded(IMultiblockComponent newPart)
MultiblockControllerBaseonBlockAdded in class MultiblockControllerBasenewPart - The part being added.protected void onBlockRemoved(IMultiblockComponent oldPart)
MultiblockControllerBaseonBlockRemoved in class MultiblockControllerBaseoldPart - The part being removed.protected void isMachineWhole()
throws MultiblockValidationException
MultiblockControllerBaseisMachineWhole in class RectangularMultiblockControllerBaseMultiblockValidationExceptionprotected void isGoodForExteriorLevel(IMultiblockComponent part, int level) throws MultiblockValidationException
isGoodForExteriorLevel in class RectangularMultiblockControllerBaseMultiblockValidationExceptionprotected void isGoodForInterior(IMultiblockComponent part) throws MultiblockValidationException
isGoodForInterior in class RectangularMultiblockControllerBaseMultiblockValidationExceptionprotected void onAssimilate(IMultiblockControllerInternal assimilated)
MultiblockControllerBaseonAssimilate in class MultiblockControllerBaseassimilated - The controller whose uniqueness was added to our own.public void onAssimilated(IMultiblockControllerInternal assimilator)
MultiblockControllerBaseonAssimilated in interface IMultiblockControllerInternalonAssimilated in class MultiblockControllerBaseassimilator - The controller which has assimilated this controller.protected boolean updateServer(int tickCount)
MultiblockControllerBaseupdateServer in class MultiblockControllerBaseprotected void updateClient(int tickCount)
MultiblockControllerBaseupdateClient in class MultiblockControllerBasepublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in interface INbtWritablewriteToNBT in class MultiblockControllerForestrypublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in interface INbtReadablereadFromNBT in class MultiblockControllerForestrypublic 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.util.math.BlockPos getCoordinates()
IHousinggetCoordinates in interface ILocatablegetCoordinates in interface IHousingpublic net.minecraft.util.math.Vec3d getBeeFXCoordinates()
getBeeFXCoordinates in interface IBeeHousingpublic float getExactTemperature()
getExactTemperature in interface IClimatisedpublic float getExactHumidity()
getExactHumidity in interface IClimatisedpublic EnumTemperature getTemperature()
getTemperature in interface IClimateProvidergetTemperature in interface IClimatisedpublic EnumHumidity getHumidity()
getHumidity in interface IClimateProvidergetHumidity in interface IClimatisedpublic com.mojang.authlib.GameProfile getOwner()
getOwner in interface IBeeHousingpublic java.lang.String getUnlocalizedType()
getUnlocalizedType in interface IMultiblockControllerInternalpublic net.minecraft.world.biome.Biome getBiome()
getBiome in interface IClimateProviderpublic int getBlockLightValue()
getBlockLightValue in interface IBeeHousingpublic boolean canBlockSeeTheSky()
canBlockSeeTheSky in interface IBeeHousingpublic boolean isRaining()
isRaining in interface IBeeHousingpublic void addTemperatureChange(float change,
float boundaryDown,
float boundaryUp)
IClimateControlledaddTemperatureChange in interface IClimateControlledpublic void addHumidityChange(float change,
float boundaryDown,
float boundaryUp)
IClimateControlledaddHumidityChange in interface IClimateControlledpublic int getHealthScaled(int i)
getHealthScaled in interface IAlvearyControllerInternalpublic void writeGuiData(PacketBufferForestry data)
writeGuiData in interface IStreamableGuipublic void readGuiData(PacketBufferForestry data)
readGuiData in interface IStreamableGui