Class BeehiveBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/BeehiveBlockEntity
intermediary net/minecraft/class_4482
official dqe
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static final record
static enum
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final List
<BeehiveBlockEntity.Bee> private static final String
private static final String
private static final Logger
static final int
private static final int
static final int
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
addComponents
(ComponentMap.Builder componentMapBuilder) void
angerBees
(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) private List
<BeehiveBlockEntity.BeeData> int
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.protected void
readComponents
(BlockEntity.ComponentsAccess components) protected void
readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt
.private static boolean
releaseBee
(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.BeeData bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) void
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) tryReleaseBee
(BlockState state, BeehiveBlockEntity.BeeState beeState) protected void
writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt
.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, setCachedState, setComponents, setStackNbt, setWorld, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeIdToNbt
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/block/entity/BeehiveBlockEntity;LOGGER:Lorg/slf4j/Logger;
intermediary field_49409
Lnet/minecraft/class_4482;field_49409:Lorg/slf4j/Logger;
official c
Ldqe;c:Lorg/slf4j/Logger;
-
FLOWER_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FLOWER_POS_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;FLOWER_POS_KEY:Ljava/lang/String;
intermediary field_31306
Lnet/minecraft/class_4482;field_31306:Ljava/lang/String;
official d
Ldqe;d:Ljava/lang/String;
-
BEES_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named BEES_KEY
Lnet/minecraft/block/entity/BeehiveBlockEntity;BEES_KEY:Ljava/lang/String;
intermediary field_31311
Lnet/minecraft/class_4482;field_31311:Ljava/lang/String;
official e
Ldqe;e:Ljava/lang/String;
-
IRRELEVANT_BEE_NBT_KEYS
- Mappings:
Namespace Name Mixin selector named IRRELEVANT_BEE_NBT_KEYS
Lnet/minecraft/block/entity/BeehiveBlockEntity;IRRELEVANT_BEE_NBT_KEYS:Ljava/util/List;
intermediary field_33570
Lnet/minecraft/class_4482;field_33570:Ljava/util/List;
official f
Ldqe;f:Ljava/util/List;
-
MAX_BEE_COUNT
public static final int MAX_BEE_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_BEE_COUNT
Lnet/minecraft/block/entity/BeehiveBlockEntity;MAX_BEE_COUNT:I
intermediary field_31312
Lnet/minecraft/class_4482;field_31312:I
official a
Ldqe;a:I
-
ANGERED_CANNOT_ENTER_HIVE_TICKS
private static final int ANGERED_CANNOT_ENTER_HIVE_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named ANGERED_CANNOT_ENTER_HIVE_TICKS
Lnet/minecraft/block/entity/BeehiveBlockEntity;ANGERED_CANNOT_ENTER_HIVE_TICKS:I
intermediary field_31314
Lnet/minecraft/class_4482;field_31314:I
official g
Ldqe;g:I
-
MIN_OCCUPATION_TICKS_WITH_NECTAR
private static final int MIN_OCCUPATION_TICKS_WITH_NECTAR- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_OCCUPATION_TICKS_WITH_NECTAR
Lnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITH_NECTAR:I
intermediary field_31315
Lnet/minecraft/class_4482;field_31315:I
official h
Ldqe;h:I
-
MIN_OCCUPATION_TICKS_WITHOUT_NECTAR
public static final int MIN_OCCUPATION_TICKS_WITHOUT_NECTAR- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_OCCUPATION_TICKS_WITHOUT_NECTAR
Lnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITHOUT_NECTAR:I
intermediary field_31313
Lnet/minecraft/class_4482;field_31313:I
official b
Ldqe;b:I
-
bees
- Mappings:
Namespace Name Mixin selector named bees
Lnet/minecraft/block/entity/BeehiveBlockEntity;bees:Ljava/util/List;
intermediary field_20423
Lnet/minecraft/class_4482;field_20423:Ljava/util/List;
official i
Ldqe;i:Ljava/util/List;
-
flowerPos
- Mappings:
Namespace Name Mixin selector named flowerPos
Lnet/minecraft/block/entity/BeehiveBlockEntity;flowerPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_20424
Lnet/minecraft/class_4482;field_20424:Lnet/minecraft/class_2338;
official j
Ldqe;j:Ljd;
-
-
Constructor Details
-
BeehiveBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/entity/BeehiveBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
intermediary <init>
Lnet/minecraft/class_4482;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
official <init>
Ldqe;<init>(Ljd;Ldtc;)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 named markDirty
Lnet/minecraft/block/entity/BlockEntity;markDirty()V
intermediary method_5431
Lnet/minecraft/class_2586;method_5431()V
official e
Ldqh;e()V
-
isNearFire
public boolean isNearFire()- Mappings:
Namespace Name Mixin selector named isNearFire
Lnet/minecraft/block/entity/BeehiveBlockEntity;isNearFire()Z
intermediary method_23280
Lnet/minecraft/class_4482;method_23280()Z
official b
Ldqe;b()Z
-
hasNoBees
public boolean hasNoBees()- Mappings:
Namespace Name Mixin selector named hasNoBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;hasNoBees()Z
intermediary method_22400
Lnet/minecraft/class_4482;method_22400()Z
official c
Ldqe;c()Z
-
isFullOfBees
public boolean isFullOfBees()- Mappings:
Namespace Name Mixin selector named isFullOfBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;isFullOfBees()Z
intermediary method_21856
Lnet/minecraft/class_4482;method_21856()Z
official d
Ldqe;d()Z
-
angerBees
public void angerBees(@Nullable @Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) - Mappings:
Namespace Name Mixin selector named angerBees
Lnet/minecraft/block/entity/BeehiveBlockEntity;angerBees(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)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
official a
Ldqe;a(Lcmx;Ldtc;Ldqe$b;)V
-
tryReleaseBee
- Mappings:
Namespace Name Mixin selector named tryReleaseBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;tryReleaseBee(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)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;
official a
Ldqe;a(Ldtc;Ldqe$b;)Ljava/util/List;
-
getBeeCount
public int getBeeCount()- Mappings:
Namespace Name Mixin selector named getBeeCount
Lnet/minecraft/block/entity/BeehiveBlockEntity;getBeeCount()I
intermediary method_23903
Lnet/minecraft/class_4482;method_23903()I
official f
Ldqe;f()I
-
getHoneyLevel
- Mappings:
Namespace Name Mixin selector named getHoneyLevel
Lnet/minecraft/block/entity/BeehiveBlockEntity;getHoneyLevel(Lnet/minecraft/block/BlockState;)I
intermediary method_23902
Lnet/minecraft/class_4482;method_23902(Lnet/minecraft/class_2680;)I
official a
Ldqe;a(Ldtc;)I
-
isSmoked
public boolean isSmoked()- Mappings:
Namespace Name Mixin selector named isSmoked
Lnet/minecraft/block/entity/BeehiveBlockEntity;isSmoked()Z
intermediary method_23904
Lnet/minecraft/class_4482;method_23904()Z
official j
Ldqe;j()Z
-
tryEnterHive
- Mappings:
Namespace Name Mixin selector named tryEnterHive
Lnet/minecraft/block/entity/BeehiveBlockEntity;tryEnterHive(Lnet/minecraft/entity/Entity;)V
intermediary method_21848
Lnet/minecraft/class_4482;method_21848(Lnet/minecraft/class_1297;)V
official a
Ldqe;a(Lbsr;)V
-
addBee
- Mappings:
Namespace Name Mixin selector named addBee
Lnet/minecraft/block/entity/BeehiveBlockEntity;addBee(Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;)V
intermediary method_35292
Lnet/minecraft/class_4482;method_35292(Lnet/minecraft/class_4482$class_9309;)V
official a
Ldqe;a(Ldqe$c;)V
-
releaseBee
private static boolean releaseBee(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.BeeData bee, @Nullable @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable @Nullable BlockPos flowerPos) - Mappings:
Namespace Name Mixin selector 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$BeeData;Ljava/util/List;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;Lnet/minecraft/util/math/BlockPos;)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_9309;Ljava/util/List;Lnet/minecraft/class_4482$class_4484;Lnet/minecraft/class_2338;)Z
official a
Ldqe;a(Ldcw;Ljd;Ldtc;Ldqe$c;Ljava/util/List;Ldqe$b;Ljd;)Z
-
hasFlowerPos
private boolean hasFlowerPos()- Mappings:
Namespace Name Mixin selector named hasFlowerPos
Lnet/minecraft/block/entity/BeehiveBlockEntity;hasFlowerPos()Z
intermediary method_21857
Lnet/minecraft/class_4482;method_21857()Z
official k
Ldqe;k()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 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
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
official a
Ldqe;a(Ldcw;Ljd;Ldtc;Ljava/util/List;Ljd;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector 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
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
official a
Ldqe;a(Ldcw;Ljd;Ldtc;Ldqe;)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 named readNbt
Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11014
Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official a
Ldqh;a(Lub;Ljo$a;)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 named writeNbt
Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_11007
Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Ldqh;b(Lub;Ljo$a;)V
-
readComponents
- Overrides:
readComponents
in classBlockEntity
- Mappings:
Namespace Name Mixin selector named readComponents
Lnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/block/entity/BlockEntity$ComponentsAccess;)V
intermediary method_57568
Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_2586$class_9473;)V
official a
Ldqh;a(Ldqh$b;)V
-
addComponents
- Overrides:
addComponents
in classBlockEntity
- Mappings:
Namespace Name Mixin selector named addComponents
Lnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)V
intermediary method_57567
Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)V
official a
Ldqh;a(Lkm$a;)V
-
removeFromCopiedStackNbt
- Overrides:
removeFromCopiedStackNbt
in classBlockEntity
- Mappings:
Namespace Name Mixin selector named removeFromCopiedStackNbt
Lnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackNbt(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_57569
Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_2487;)V
official a
Ldqh;a(Lub;)V
-
createBeesData
- Mappings:
Namespace Name Mixin selector named createBeesData
Lnet/minecraft/block/entity/BeehiveBlockEntity;createBeesData()Ljava/util/List;
intermediary method_57580
Lnet/minecraft/class_4482;method_57580()Ljava/util/List;
official l
Ldqe;l()Ljava/util/List;
-