public class BeehiveTileEntity extends TileEntity implements ITickableTileEntity
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
BeehiveTileEntity.Bee |
static class |
BeehiveTileEntity.State |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<BeehiveTileEntity.Bee> |
bees |
private BlockPos |
flowerPos |
pos, removed, worldINFINITE_EXTENT_AABB| Constructor and Description |
|---|
BeehiveTileEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
angerBees(PlayerEntity p_226963_1_,
BlockState p_226963_2_,
BeehiveTileEntity.State p_226963_3_) |
int |
getBeeCount() |
ListNBT |
getBees() |
static int |
getHoneyLevel(BlockState p_226964_0_) |
private boolean |
hasFlowerPos() |
boolean |
hasNoBees() |
boolean |
isFullOfBees() |
boolean |
isNearFire() |
boolean |
isSmoked() |
void |
markDirty() |
void |
read(CompoundNBT compound) |
private boolean |
releaseBee(BlockState p_226967_1_,
CompoundNBT p_226967_2_,
java.util.List<Entity> p_226967_3_,
BeehiveTileEntity.State p_226967_4_) |
protected void |
sendDebugData() |
void |
tick() |
private void |
tickBees() |
void |
tryEnterHive(Entity p_226961_1_,
boolean p_226961_2_) |
void |
tryEnterHive(Entity p_226962_1_,
boolean p_226962_2_,
int p_226962_3_) |
private java.util.List<Entity> |
tryReleaseBee(BlockState p_226965_1_,
BeehiveTileEntity.State p_226965_2_) |
CompoundNBT |
write(CompoundNBT compound) |
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getUpdatePacket, getUpdateTag, getWorld, hasWorld, isRemoved, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorldAndPos, updateContainingBlockInfo, validate, warnInvalidBlockareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRenderBreaking, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, hasFastRenderer, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTgetCapability, getCapabilityprivate final java.util.List<BeehiveTileEntity.Bee> bees
@Nullable private BlockPos flowerPos
public void markDirty()
markDirty in class TileEntitypublic boolean isNearFire()
public boolean hasNoBees()
public boolean isFullOfBees()
public void angerBees(@Nullable
PlayerEntity p_226963_1_,
BlockState p_226963_2_,
BeehiveTileEntity.State p_226963_3_)
private java.util.List<Entity> tryReleaseBee(BlockState p_226965_1_, BeehiveTileEntity.State p_226965_2_)
public void tryEnterHive(Entity p_226961_1_, boolean p_226961_2_)
public int getBeeCount()
public static int getHoneyLevel(BlockState p_226964_0_)
public boolean isSmoked()
protected void sendDebugData()
public void tryEnterHive(Entity p_226962_1_, boolean p_226962_2_, int p_226962_3_)
private boolean releaseBee(BlockState p_226967_1_, CompoundNBT p_226967_2_, @Nullable java.util.List<Entity> p_226967_3_, BeehiveTileEntity.State p_226967_4_)
private boolean hasFlowerPos()
private void tickBees()
public void tick()
tick in interface ITickableTileEntitypublic void read(CompoundNBT compound)
read in class TileEntitypublic CompoundNBT write(CompoundNBT compound)
write in class TileEntitypublic ListNBT getBees()