public class BeekeepingLogic extends java.lang.Object implements IBeekeepingLogic
| Constructor and Description |
|---|
BeekeepingLogic(IBeeHousing housing) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoBeeFX()
Whether bee fx should be active.
|
boolean |
canWork()
Checks that the bees can work, setting error conditions on the housing where needed
|
void |
clearCachedValues()
Force the logic to refresh any cached values and error states.
|
void |
doBeeFX()
Display bee fx.
|
void |
doWork()
Performs actual work, breeding, production, etc.
|
int |
getBeeProgressPercent()
Get the progress bar for breeding and production.
|
java.util.List<net.minecraft.util.math.BlockPos> |
getFlowerPositions()
Used by bee fx to direct bees to nearby flowers.
|
void |
readData(net.minecraft.network.PacketBuffer data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
syncToClient()
Sync to client by using
INbtWritable.writeToNBT(NBTTagCompound) in your TileEntity.getUpdateTag() |
void |
syncToClient(net.minecraft.entity.player.EntityPlayerMP player) |
void |
writeData(net.minecraft.network.PacketBuffer data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
public BeekeepingLogic(IBeeHousing housing)
public 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 void writeData(net.minecraft.network.PacketBuffer data)
writeData in interface IBeekeepingLogicpublic void readData(net.minecraft.network.PacketBuffer data)
throws java.io.IOException
readData in interface IBeekeepingLogicjava.io.IOExceptionpublic boolean canWork()
IBeekeepingLogiccanWork in interface IBeekeepingLogicpublic void doWork()
IBeekeepingLogicdoWork in interface IBeekeepingLogicpublic void clearCachedValues()
IBeekeepingLogicclearCachedValues in interface IBeekeepingLogicpublic void syncToClient()
IBeekeepingLogicINbtWritable.writeToNBT(NBTTagCompound) in your TileEntity.getUpdateTag()syncToClient in interface IBeekeepingLogicpublic void syncToClient(net.minecraft.entity.player.EntityPlayerMP player)
syncToClient in interface IBeekeepingLogicpublic int getBeeProgressPercent()
IBeekeepingLogicgetBeeProgressPercent in interface IBeekeepingLogicpublic boolean canDoBeeFX()
IBeekeepingLogiccanDoBeeFX in interface IBeekeepingLogicpublic void doBeeFX()
IBeekeepingLogicdoBeeFX in interface IBeekeepingLogicpublic java.util.List<net.minecraft.util.math.BlockPos> getFlowerPositions()
IBeekeepingLogicgetFlowerPositions in interface IBeekeepingLogic