Package net.minecraft.block.entity
Class BeehiveBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.BeehiveBlockEntity
public class BeehiveBlockEntity extends BlockEntity
- Mappings:
Namespace Name official cfo
intermediary net/minecraft/class_4482
named net/minecraft/block/entity/BeehiveBlockEntity
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BeehiveBlockEntity.Bee
static class
BeehiveBlockEntity.BeeState
-
Field Summary
Fields Modifier and Type Field Description private List<BeehiveBlockEntity.Bee>
bees
private BlockPos
flowerPos
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description BeehiveBlockEntity(BlockPos pos, BlockState state)
-
Method Summary
Modifier and Type Method Description private static void
ageBee(int int2, BeeEntity beeEntity)
void
angerBees(PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState)
void
fromTag(CompoundTag tag)
int
getBeeCount()
ListTag
getBees()
static int
getHoneyLevel(BlockState state)
private boolean
hasFlowerPos()
boolean
hasNoBees()
boolean
isFullOfBees()
boolean
isNearFire()
boolean
isSmoked()
void
markDirty()
private static boolean
releaseBee(World world, BlockPos blockPos, BlockState blockState, BeehiveBlockEntity.Bee bee, List<Entity> list, BeehiveBlockEntity.BeeState beeState, BlockPos blockPos2)
static void
serverTick(World world, BlockPos blockPos, BlockState blockState, BeehiveBlockEntity beehiveBlockEntity)
private static void
tickBees(World world, BlockPos blockPos, BlockState blockState, List<BeehiveBlockEntity.Bee> list, BlockPos blockPos2)
CompoundTag
toTag(CompoundTag tag)
void
tryEnterHive(Entity entity, boolean hasNectar)
void
tryEnterHive(Entity entity, boolean hasNectar, int ticksInHive)
private List<Entity>
tryReleaseBee(BlockState state, BeehiveBlockEntity.BeeState beeState)
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld, toInitialChunkDataTag, toUpdatePacket
-
Field Details
-
bees
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a:Ljava/util/List;
intermediary field_20423
Lnet/minecraft/class_4482;field_20423:Ljava/util/List;
named bees
Lnet/minecraft/block/entity/BeehiveBlockEntity;bees:Ljava/util/List;
-
flowerPos
- Mappings:
Namespace Name Mixin selector official b
Lcfo;b:Lfx;
intermediary field_20424
Lnet/minecraft/class_4482;field_20424:Lnet/minecraft/class_2338;
named flowerPos
Lnet/minecraft/block/entity/BeehiveBlockEntity;flowerPos:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
BeehiveBlockEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lcfo;<init>(Lfx;Lcht;)V
intermediary <init>
Lnet/minecraft/class_4482;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
named <init>
Lnet/minecraft/block/entity/BeehiveBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
-
Method Details
-
markDirty
public void markDirty()- Overrides:
markDirty
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official Y_
Lcfr;Y_()V
intermediary method_5431
Lnet/minecraft/class_2586;method_5431()V
named markDirty
Lnet/minecraft/block/entity/BlockEntity;markDirty()V
-
isNearFire
public boolean isNearFire()- Mappings:
Namespace Name Mixin selector official d
Lcfo;d()Z
intermediary method_23280
Lnet/minecraft/class_4482;method_23280()Z
named isNearFire
Lnet/minecraft/block/entity/BeehiveBlockEntity;isNearFire()Z
-
hasNoBees
public boolean hasNoBees()- Mappings:
Namespace Name Mixin selector official f
Lcfo;f()Z
intermediary method_22400
Lnet/minecraft/class_4482;method_22400()Z
named hasNoBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;hasNoBees()Z
-
isFullOfBees
public boolean isFullOfBees()- Mappings:
Namespace Name Mixin selector official h
Lcfo;h()Z
intermediary method_21856
Lnet/minecraft/class_4482;method_21856()Z
named isFullOfBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;isFullOfBees()Z
-
angerBees
public void angerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState)- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lbhl;Lcht;Lcfo$b;)V
intermediary method_21850
Lnet/minecraft/class_4482;method_21850(Lnet/minecraft/class_1657;Lnet/minecraft/class_2680;Lnet/minecraft/class_4482$class_4484;)V
named angerBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;angerBees(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)V
-
tryReleaseBee
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lcht;Lcfo$b;)Ljava/util/List;
intermediary method_21852
Lnet/minecraft/class_4482;method_21852(Lnet/minecraft/class_2680;Lnet/minecraft/class_4482$class_4484;)Ljava/util/List;
named tryReleaseBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;tryReleaseBee(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)Ljava/util/List;
-
tryEnterHive
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Laqv;Z)V
intermediary method_21848
Lnet/minecraft/class_4482;method_21848(Lnet/minecraft/class_1297;Z)V
named tryEnterHive
Lnet/minecraft/block/entity/BeehiveBlockEntity;tryEnterHive(Lnet/minecraft/entity/Entity;Z)V
-
getBeeCount
public int getBeeCount()- Mappings:
Namespace Name Mixin selector official i
Lcfo;i()I
intermediary method_23903
Lnet/minecraft/class_4482;method_23903()I
named getBeeCount
Lnet/minecraft/block/entity/BeehiveBlockEntity;getBeeCount()I
-
getHoneyLevel
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lcht;)I
intermediary method_23902
Lnet/minecraft/class_4482;method_23902(Lnet/minecraft/class_2680;)I
named getHoneyLevel
Lnet/minecraft/block/entity/BeehiveBlockEntity;getHoneyLevel(Lnet/minecraft/block/BlockState;)I
-
isSmoked
public boolean isSmoked()- Mappings:
Namespace Name Mixin selector official j
Lcfo;j()Z
intermediary method_23904
Lnet/minecraft/class_4482;method_23904()Z
named isSmoked
Lnet/minecraft/block/entity/BeehiveBlockEntity;isSmoked()Z
-
tryEnterHive
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Laqv;ZI)V
intermediary method_21849
Lnet/minecraft/class_4482;method_21849(Lnet/minecraft/class_1297;ZI)V
named tryEnterHive
Lnet/minecraft/block/entity/BeehiveBlockEntity;tryEnterHive(Lnet/minecraft/entity/Entity;ZI)V
-
releaseBee
private static boolean releaseBee(World world, BlockPos blockPos, BlockState blockState, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> list, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos blockPos2)- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lbtv;Lfx;Lcht;Lcfo$a;Ljava/util/List;Lcfo$b;Lfx;)Z
intermediary method_21855
Lnet/minecraft/class_4482;method_21855(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_4482$class_4483;Ljava/util/List;Lnet/minecraft/class_4482$class_4484;Lnet/minecraft/class_2338;)Z
named releaseBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;releaseBee(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$Bee;Ljava/util/List;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;Lnet/minecraft/util/math/BlockPos;)Z
-
ageBee
- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(ILbbk;)V
intermediary method_29562
Lnet/minecraft/class_4482;method_29562(ILnet/minecraft/class_4466;)V
named ageBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;ageBee(ILnet/minecraft/entity/passive/BeeEntity;)V
-
hasFlowerPos
private boolean hasFlowerPos()- Mappings:
Namespace Name Mixin selector official t
Lcfo;t()Z
intermediary method_21857
Lnet/minecraft/class_4482;method_21857()Z
named hasFlowerPos
Lnet/minecraft/block/entity/BeehiveBlockEntity;hasFlowerPos()Z
-
tickBees
private static void tickBees(World world, BlockPos blockPos, BlockState blockState, List<BeehiveBlockEntity.Bee> list, @Nullable BlockPos blockPos2)- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lbtv;Lfx;Lcht;Ljava/util/List;Lfx;)V
intermediary method_21858
Lnet/minecraft/class_4482;method_21858(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/List;Lnet/minecraft/class_2338;)V
named tickBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;tickBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/List;Lnet/minecraft/util/math/BlockPos;)V
-
serverTick
public static void serverTick(World world, BlockPos blockPos, BlockState blockState, BeehiveBlockEntity beehiveBlockEntity)- Mappings:
Namespace Name Mixin selector official a
Lcfo;a(Lbtv;Lfx;Lcht;Lcfo;)V
intermediary method_31656
Lnet/minecraft/class_4482;method_31656(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_4482;)V
named serverTick
Lnet/minecraft/block/entity/BeehiveBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity;)V
-
fromTag
- Overrides:
fromTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official a
Lcfr;a(Lmq;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/block/entity/BlockEntity;fromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Overrides:
toTag
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official b
Lcfr;b(Lmq;)Lmq;
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/block/entity/BlockEntity;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getBees
- Mappings:
Namespace Name Mixin selector official k
Lcfo;k()Lmw;
intermediary method_21859
Lnet/minecraft/class_4482;method_21859()Lnet/minecraft/class_2499;
named getBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;getBees()Lnet/minecraft/nbt/ListTag;
-