public interface IBeekeepingLogic extends INbtWritable, INbtReadable
| 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.
|
default void |
readData(net.minecraft.network.PacketBuffer data) |
void |
syncToClient()
Sync to client by using
INbtWritable.writeToNBT(NBTTagCompound) in your TileEntity.getUpdateTag() |
void |
syncToClient(net.minecraft.entity.player.EntityPlayerMP player) |
default void |
writeData(net.minecraft.network.PacketBuffer data) |
writeToNBTreadFromNBTboolean canWork()
void doWork()
void clearCachedValues()
void syncToClient()
INbtWritable.writeToNBT(NBTTagCompound) in your TileEntity.getUpdateTag()void syncToClient(net.minecraft.entity.player.EntityPlayerMP player)
int getBeeProgressPercent()
boolean canDoBeeFX()
void doBeeFX()
java.util.List<net.minecraft.util.math.BlockPos> getFlowerPositions()
default void readData(net.minecraft.network.PacketBuffer data)
throws java.io.IOException
java.io.IOExceptiondefault void writeData(net.minecraft.network.PacketBuffer data)