net.minecraft.world.level.block.entity

public class BeehiveBlockEntity

extends BlockEntity

cim
net.minecraft.world.level.block.entity.BeehiveBlockEntity
net.minecraft.class_4482
net.minecraft.block.entity.BeehiveBlockEntity
net.minecraft.src.C_1985_
net.minecraft.world.level.block.entity.TileEntityBeehive

Field summary

Modifier and TypeField
public static final String
a
TAG_FLOWER_POS
field_31306
FLOWER_POS_KEY
f_155121_
public static final String
b
MIN_OCCUPATION_TICKS
field_31307
MIN_OCCUPATION_TICKS_KEY
f_155122_
public static final String
c
ENTITY_DATA
field_31308
ENTITY_DATA_KEY
f_155123_
public static final String
d
TICKS_IN_HIVE
field_31309
TICKS_IN_HIVE_KEY
f_155124_
public static final String
e
HAS_NECTAR
field_31310
HAS_NECTAR_KEY
f_155125_
public static final String
f
BEES
field_31311
BEES_KEY
f_155126_
private static final List<String>
i
IGNORED_BEE_TAGS
field_33570
IRRELEVANT_BEE_NBT_KEYS
f_155129_
public static final int
g
MAX_OCCUPANTS
field_31312
MAX_BEE_COUNT
f_155127_
private static final int
j
MIN_TICKS_BEFORE_REENTERING_HIVE
field_31314
ANGERED_CANNOT_ENTER_HIVE_TICKS
f_155130_
private static final int
k
MIN_OCCUPATION_TICKS_NECTAR
field_31315
MIN_OCCUPATION_TICKS_WITH_NECTAR
f_155131_
public static final int
h
MIN_OCCUPATION_TICKS_NECTARLESS
field_31313
MIN_OCCUPATION_TICKS_WITHOUT_NECTAR
f_155128_
private final List<BeehiveBlockEntity$BeeData>
l
stored
field_20423
bees
f_58732_
private BlockPos
m
savedFlowerPos
field_20424
flowerPos
f_58733_

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
public void
e()
setChanged()
method_5431()
markDirty()
m_6596_()
update()
public boolean
d()
isFireNearby()
method_23280()
isNearFire()
m_58773_()
public boolean
f()
isEmpty()
method_22400()
hasNoBees()
m_58774_()
isEmpty()
public boolean
g()
isFull()
method_21856()
isFullOfBees()
m_58775_()
isFull()
public void
a(bkd arg0, cks arg1, cim$b arg2)
emptyAllLivingFromHive(Player arg0, BlockState arg1, BeehiveBlockEntity$BeeReleaseStatus arg2)
method_21850(class_1657 arg0, class_2680 arg1, class_4482$class_4484 arg2)
angerBees(PlayerEntity player, BlockState state, BeehiveBlockEntity$BeeState beeState)
m_58748_(C_1141_ p_58750_, C_2064_ p_58751_, C_1985_$C_1988_ arg2)
private List<Entity>
a(cks arg0, cim$b arg1)
releaseAllOccupants(BlockState arg0, BeehiveBlockEntity$BeeReleaseStatus arg1)
method_21852(class_2680 arg0, class_4482$class_4484 arg1)
tryReleaseBee(BlockState state, BeehiveBlockEntity$BeeState beeState)
m_58759_(C_2064_ p_58761_, C_1985_$C_1988_ arg1)
releaseBees(IBlockData arg0, TileEntityBeehive$ReleaseStatus arg1)
public void
a(atf arg0, boolean arg1)
addOccupant(Entity arg0, boolean arg1)
method_21848(class_1297 arg0, boolean arg1)
tryEnterHive(Entity entity, boolean hasNectar)
m_58741_(C_507_ p_58743_, boolean arg1)
addBee(Entity arg0, boolean arg1)
public int
h()
getOccupantCount()
method_23903()
getBeeCount()
m_58776_()
getBeeCount()
public static int
a(cks arg0)
getHoneyLevel(BlockState arg0)
method_23902(class_2680 arg0)
getHoneyLevel(BlockState state)
m_58752_(C_2064_ p_58753_)
public boolean
i()
isSedated()
method_23904()
isSmoked()
m_58777_()
isSedated()
public void
a(atf arg0, boolean arg1, int arg2)
addOccupantWithPresetTicks(Entity arg0, boolean arg1, int arg2)
method_21849(class_1297 arg0, boolean arg1, int arg2)
tryEnterHive(Entity entity, boolean hasNectar, int ticksInHive)
m_58744_(C_507_ p_58746_, boolean p_58747_, int arg2)
public void
a(na arg0, int arg1, boolean arg2)
storeBee(CompoundTag arg0, int arg1, boolean arg2)
method_35292(class_2487 arg0, int arg1, boolean arg2)
addBee(NbtCompound nbtCompound, int ticksInHive, boolean hasNectar)
m_155157_(C_4917_ p_155159_, int p_155160_, boolean arg2)
private static boolean
a(bwp arg0, gg arg1, cks arg2, cim$a arg3, List<atf> arg4, cim$b arg5, gg arg6)
releaseOccupant(Level arg0, BlockPos arg1, BlockState arg2, BeehiveBlockEntity$BeeData arg3, List<Entity> arg4, BeehiveBlockEntity$BeeReleaseStatus arg5, BlockPos arg6)
method_21855(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_4482$class_4483 arg3, List<class_1297> arg4, class_4482$class_4484 arg5, class_2338 arg6)
releaseBee(World world, BlockPos pos, BlockState state, BeehiveBlockEntity$Bee bee, List<Entity> entities, BeehiveBlockEntity$BeeState beeState, BlockPos flowerPos)
m_155136_(C_1596_ p_155137_, C_4675_ p_155138_, C_2064_ p_155139_, C_1985_$C_1987_ p_155140_, List<C_507_> p_155141_, C_1985_$C_1988_ p_155142_, C_4675_ p_155143_)
releaseBee(World arg0, BlockPosition arg1, IBlockData arg2, TileEntityBeehive$HiveBee arg3, List<Entity> arg4, TileEntityBeehive$ReleaseStatus arg5, BlockPosition arg6)
static void
c(na arg0)
removeIgnoredBeeTags(CompoundTag arg0)
method_36379(class_2487 arg0)
removeIrrelevantNbtKeys(NbtCompound compound)
m_155161_(C_4917_ p_155162_)
private static void
a(int arg0, bdy arg1)
setBeeReleaseData(int arg0, Bee arg1)
method_29562(int arg0, class_4466 arg1)
ageBee(int ticks, BeeEntity bee)
m_58736_(int p_58737_, C_805_ p_58738_)
private boolean
s()
hasSavedFlowerPos()
method_21857()
hasFlowerPos()
m_58780_()
private static void
a(bwp arg0, gg arg1, cks arg2, List<cim$a> arg3, gg arg4)
tickOccupants(Level arg0, BlockPos arg1, BlockState arg2, List<BeehiveBlockEntity$BeeData> arg3, BlockPos arg4)
method_21858(class_1937 arg0, class_2338 arg1, class_2680 arg2, List<class_4482$class_4483> arg3, class_2338 arg4)
tickBees(World world, BlockPos pos, BlockState state, List<BeehiveBlockEntity$Bee> bees, BlockPos flowerPos)
m_155149_(C_1596_ p_155150_, C_4675_ p_155151_, C_2064_ p_155152_, List<C_1985_$C_1987_> p_155153_, C_4675_ p_155154_)
public static void
a(bwp arg0, gg arg1, cks arg2, cim arg3)
serverTick(Level arg0, BlockPos arg1, BlockState arg2, BeehiveBlockEntity arg3)
method_31656(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_4482 arg3)
serverTick(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity)
m_155144_(C_1596_ p_155145_, C_4675_ p_155146_, C_2064_ p_155147_, C_1985_ p_155148_)
public void
a(na arg0)
load(CompoundTag arg0)
method_11014(class_2487 arg0)
readNbt(NbtCompound arg0)
m_142466_(C_4917_ arg0)
load(NBTTagCompound arg0)
public CompoundTag
b(na arg0)
save(CompoundTag arg0)
method_11007(class_2487 arg0)
writeNbt(NbtCompound arg0)
m_6945_(C_4917_ arg0)
save(NBTTagCompound arg0)
public ListTag
j()
writeBees()
method_21859()
getBees()
m_58779_()