Class BeehiveBlockEntity
- Mappings:
Namespace Name official dgs
intermediary net/minecraft/class_4482
named net/minecraft/block/entity/BeehiveBlockEntity
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final List<BeehiveBlockEntity.Bee>
static final String
static final String
static final String
static final String
static final int
static final String
private static final int
static final int
static final String
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBee
(NbtCompound nbtCompound, int ticksInHive, boolean hasNectar) private static void
void
angerBees
(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) int
getBees()
static int
getHoneyLevel
(BlockState state) private boolean
boolean
boolean
boolean
boolean
isSmoked()
void
Marks this block entity as dirty and that it needs to be saved.void
readNbt
(NbtCompound nbt) Reads data fromnbt
.private static boolean
releaseBee
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) (package private) static void
removeIrrelevantNbtKeys
(NbtCompound compound) static void
serverTick
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) private static void
tickBees
(World world, BlockPos pos, BlockState state, List<BeehiveBlockEntity.Bee> bees, @Nullable BlockPos flowerPos) void
tryEnterHive
(Entity entity, boolean hasNectar) void
tryEnterHive
(Entity entity, boolean hasNectar, int ticksInHive) tryReleaseBee
(BlockState state, BeehiveBlockEntity.BeeState beeState) protected void
writeNbt
(NbtCompound nbt) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, setCachedState, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, writeIdToNbt
-
Field Details
-
FLOWER_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldgs;a:Ljava/lang/String;
intermediary field_31306
Lnet/minecraft/class_4482;field_31306:Ljava/lang/String;
named FLOWER_POS_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;FLOWER_POS_KEY:Ljava/lang/String;
-
MIN_OCCUPATION_TICKS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldgs;b:Ljava/lang/String;
intermediary field_31307
Lnet/minecraft/class_4482;field_31307:Ljava/lang/String;
named MIN_OCCUPATION_TICKS_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_KEY:Ljava/lang/String;
-
ENTITY_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldgs;c:Ljava/lang/String;
intermediary field_31308
Lnet/minecraft/class_4482;field_31308:Ljava/lang/String;
named ENTITY_DATA_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;ENTITY_DATA_KEY:Ljava/lang/String;
-
TICKS_IN_HIVE_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldgs;d:Ljava/lang/String;
intermediary field_31309
Lnet/minecraft/class_4482;field_31309:Ljava/lang/String;
named TICKS_IN_HIVE_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;TICKS_IN_HIVE_KEY:Ljava/lang/String;
-
HAS_NECTAR_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official e
Ldgs;e:Ljava/lang/String;
intermediary field_31310
Lnet/minecraft/class_4482;field_31310:Ljava/lang/String;
named HAS_NECTAR_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;HAS_NECTAR_KEY:Ljava/lang/String;
-
BEES_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Ldgs;f:Ljava/lang/String;
intermediary field_31311
Lnet/minecraft/class_4482;field_31311:Ljava/lang/String;
named BEES_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;BEES_KEY:Ljava/lang/String;
-
IRRELEVANT_BEE_NBT_KEYS
- Mappings:
Namespace Name Mixin selector official i
Ldgs;i:Ljava/util/List;
intermediary field_33570
Lnet/minecraft/class_4482;field_33570:Ljava/util/List;
named IRRELEVANT_BEE_NBT_KEYS
Lnet/minecraft/block/entity/BeehiveBlockEntity;IRRELEVANT_BEE_NBT_KEYS:Ljava/util/List;
-
MAX_BEE_COUNT
public static final int MAX_BEE_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector official g
Ldgs;g:I
intermediary field_31312
Lnet/minecraft/class_4482;field_31312:I
named MAX_BEE_COUNT
Lnet/minecraft/block/entity/BeehiveBlockEntity;MAX_BEE_COUNT:I
-
ANGERED_CANNOT_ENTER_HIVE_TICKS
private static final int ANGERED_CANNOT_ENTER_HIVE_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector official j
Ldgs;j:I
intermediary field_31314
Lnet/minecraft/class_4482;field_31314:I
named ANGERED_CANNOT_ENTER_HIVE_TICKS
Lnet/minecraft/block/entity/BeehiveBlockEntity;ANGERED_CANNOT_ENTER_HIVE_TICKS:I
-
MIN_OCCUPATION_TICKS_WITH_NECTAR
private static final int MIN_OCCUPATION_TICKS_WITH_NECTAR- See Also:
- Mappings:
Namespace Name Mixin selector official k
Ldgs;k:I
intermediary field_31315
Lnet/minecraft/class_4482;field_31315:I
named MIN_OCCUPATION_TICKS_WITH_NECTAR
Lnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITH_NECTAR:I
-
MIN_OCCUPATION_TICKS_WITHOUT_NECTAR
public static final int MIN_OCCUPATION_TICKS_WITHOUT_NECTAR- See Also:
- Mappings:
Namespace Name Mixin selector official h
Ldgs;h:I
intermediary field_31313
Lnet/minecraft/class_4482;field_31313:I
named MIN_OCCUPATION_TICKS_WITHOUT_NECTAR
Lnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITHOUT_NECTAR:I
-
bees
- Mappings:
Namespace Name Mixin selector official l
Ldgs;l: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 m
Ldgs;m:Lhx;
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>
Ldgs;<init>(Lhx;Ldjh;)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()Marks this block entity as dirty and that it needs to be saved. This also triggers comparator update.This must be called when something changed in a way that affects the saved NBT; otherwise, the game might not save the block entity.
- Overrides:
markDirty
in classBlockEntity
- Mappings:
Namespace Name Mixin selector official e
Ldgv;e()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 c
Ldgs;c()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 d
Ldgs;d()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 f
Ldgs;f()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 @Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) - Mappings:
Namespace Name Mixin selector official a
Ldgs;a(Lcfi;Ldjh;Ldgs$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
Ldgs;a(Ldjh;Ldgs$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
Ldgs;a(Lblv;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 g
Ldgs;g()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
Ldgs;a(Ldjh;)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 k
Ldgs;k()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
Ldgs;a(Lblv;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
-
addBee
- Mappings:
Namespace Name Mixin selector official a
Ldgs;a(Lsn;IZ)V
intermediary method_35292
Lnet/minecraft/class_4482;method_35292(Lnet/minecraft/class_2487;IZ)V
named addBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;addBee(Lnet/minecraft/nbt/NbtCompound;IZ)V
-
releaseBee
private static boolean releaseBee(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.Bee bee, @Nullable @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable @Nullable BlockPos flowerPos) - Mappings:
Namespace Name Mixin selector official a
Ldgs;a(Lctp;Lhx;Ldjh;Ldgs$a;Ljava/util/List;Ldgs$b;Lhx;)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
-
removeIrrelevantNbtKeys
- Mappings:
Namespace Name Mixin selector official d
Ldgs;d(Lsn;)V
intermediary method_36379
Lnet/minecraft/class_4482;method_36379(Lnet/minecraft/class_2487;)V
named removeIrrelevantNbtKeys
Lnet/minecraft/block/entity/BeehiveBlockEntity;removeIrrelevantNbtKeys(Lnet/minecraft/nbt/NbtCompound;)V
-
ageBee
- Mappings:
Namespace Name Mixin selector official a
Ldgs;a(ILbxz;)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 m
Ldgs;m()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 pos, BlockState state, List<BeehiveBlockEntity.Bee> bees, @Nullable @Nullable BlockPos flowerPos) - Mappings:
Namespace Name Mixin selector official a
Ldgs;a(Lctp;Lhx;Ldjh;Ljava/util/List;Lhx;)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 pos, BlockState state, BeehiveBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector official a
Ldgs;a(Lctp;Lhx;Ldjh;Ldgs;)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
-
readNbt
Reads data fromnbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbt
might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldgv;a(Lsn;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
Writes data tonbt
. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbt
in classBlockEntity
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Ldgv;b(Lsn;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;)V
named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getBees
- Mappings:
Namespace Name Mixin selector official l
Ldgs;l()Lst;
intermediary method_21859
Lnet/minecraft/class_4482;method_21859()Lnet/minecraft/class_2499;
named getBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;getBees()Lnet/minecraft/nbt/NbtList;
-