Class BeehiveBlockEntity
- All Implemented Interfaces:
DebugTrackable
- Mappings:
Namespace Name named net/minecraft/block/entity/BeehiveBlockEntityintermediary net/minecraft/class_4482official egd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic final recordstatic enumNested classes/interfaces inherited from interface net.minecraft.world.debug.DebugTrackable
DebugTrackable.DebugDataSupplier<T>, DebugTrackable.Tracker -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final List<BeehiveBlockEntity.Bee> private static final Stringprivate static final String(package private) static final Loggerstatic final intprivate static final intstatic final intFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidaddComponents(ComponentMap.Builder builder) voidangerBees(@Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) private List<BeehiveBlockEntity.BeeData> intstatic intgetHoneyLevel(BlockState state) private booleanbooleanbooleanbooleanbooleanisSmoked()voidMarks this block entity as dirty and that it needs to be saved.protected voidreadComponents(ComponentsAccess components) protected voidReads data fromnbt.voidregisterTracking(ServerWorld world, DebugTrackable.Tracker tracker) private static booleanreleaseBee(World world, BlockPos pos, BlockState state, BeehiveBlockEntity.BeeData bee, @Nullable List<Entity> entities, BeehiveBlockEntity.BeeState beeState, @Nullable BlockPos flowerPos) voidstatic voidserverTick(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) private static voidtickBees(World world, BlockPos pos, BlockState state, List<BeehiveBlockEntity.Bee> bees, @Nullable BlockPos flowerPos) voidtryEnterHive(BeeEntity entity) tryReleaseBee(BlockState state, BeehiveBlockEntity.BeeState beeState) protected voidWrites data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, createComponentlessNbt, createComponentMap, createFromNbt, createNbt, createNbtWithIdentifyingData, getCachedState, getComponents, getNameForReport, getPos, getReporterContext, getType, getWorld, hasWorld, isRemoved, markDirty, markRemoved, onBlockReplaced, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessData, readComponents, readComponents, setCachedState, setComponents, setWorld, supports, toInitialChunkDataNbt, toUpdatePacket, tryParseCustomName, writeComponentlessData, writeDataWithId, writeDataWithoutId, writeFullData, writeId
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/block/entity/BeehiveBlockEntity;LOGGER:Lorg/slf4j/Logger;intermediary field_60370Lnet/minecraft/class_4482;field_60370:Lorg/slf4j/Logger;official cLegd;c:Lorg/slf4j/Logger;
-
FLOWER_POS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named FLOWER_POS_KEYLnet/minecraft/block/entity/BeehiveBlockEntity;FLOWER_POS_KEY:Ljava/lang/String;intermediary field_31306Lnet/minecraft/class_4482;field_31306:Ljava/lang/String;official dLegd;d:Ljava/lang/String;
-
BEES_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named BEES_KEYLnet/minecraft/block/entity/BeehiveBlockEntity;BEES_KEY:Ljava/lang/String;intermediary field_31311Lnet/minecraft/class_4482;field_31311:Ljava/lang/String;official eLegd;e:Ljava/lang/String;
-
IRRELEVANT_BEE_NBT_KEYS
- Mappings:
Namespace Name Mixin selector named IRRELEVANT_BEE_NBT_KEYSLnet/minecraft/block/entity/BeehiveBlockEntity;IRRELEVANT_BEE_NBT_KEYS:Ljava/util/List;intermediary field_33570Lnet/minecraft/class_4482;field_33570:Ljava/util/List;official fLegd;f:Ljava/util/List;
-
MAX_BEE_COUNT
public static final int MAX_BEE_COUNT- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_BEE_COUNTLnet/minecraft/block/entity/BeehiveBlockEntity;MAX_BEE_COUNT:Iintermediary field_31312Lnet/minecraft/class_4482;field_31312:Iofficial aLegd;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_TICKSLnet/minecraft/block/entity/BeehiveBlockEntity;ANGERED_CANNOT_ENTER_HIVE_TICKS:Iintermediary field_31314Lnet/minecraft/class_4482;field_31314:Iofficial gLegd;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_NECTARLnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITH_NECTAR:Iintermediary field_31315Lnet/minecraft/class_4482;field_31315:Iofficial hLegd;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_NECTARLnet/minecraft/block/entity/BeehiveBlockEntity;MIN_OCCUPATION_TICKS_WITHOUT_NECTAR:Iintermediary field_31313Lnet/minecraft/class_4482;field_31313:Iofficial bLegd;b:I
-
bees
- Mappings:
Namespace Name Mixin selector named beesLnet/minecraft/block/entity/BeehiveBlockEntity;bees:Ljava/util/List;intermediary field_20423Lnet/minecraft/class_4482;field_20423:Ljava/util/List;official iLegd;i:Ljava/util/List;
-
flowerPos
- Mappings:
Namespace Name Mixin selector named flowerPosLnet/minecraft/block/entity/BeehiveBlockEntity;flowerPos:Lnet/minecraft/util/math/BlockPos;intermediary field_20424Lnet/minecraft/class_4482;field_20424:Lnet/minecraft/class_2338;official jLegd;j:Lja;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_4482;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Legd;<init>(Lja;Lejm;)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:
markDirtyin classBlockEntity- Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/block/entity/BlockEntity;markDirty()Vintermediary method_5431Lnet/minecraft/class_2586;method_5431()Vofficial eLegg;e()V
-
isNearFire
public boolean isNearFire()- Mappings:
Namespace Name Mixin selector named isNearFireLnet/minecraft/block/entity/BeehiveBlockEntity;isNearFire()Zintermediary method_23280Lnet/minecraft/class_4482;method_23280()Zofficial aLegd;a()Z
-
hasNoBees
public boolean hasNoBees()- Mappings:
Namespace Name Mixin selector named hasNoBeesLnet/minecraft/block/entity/BeehiveBlockEntity;hasNoBees()Zintermediary method_22400Lnet/minecraft/class_4482;method_22400()Zofficial cLegd;c()Z
-
isFullOfBees
public boolean isFullOfBees()- Mappings:
Namespace Name Mixin selector named isFullOfBeesLnet/minecraft/block/entity/BeehiveBlockEntity;isFullOfBees()Zintermediary method_21856Lnet/minecraft/class_4482;method_21856()Zofficial dLegd;d()Z
-
angerBees
public void angerBees(@Nullable @Nullable PlayerEntity player, BlockState state, BeehiveBlockEntity.BeeState beeState) - Mappings:
Namespace Name Mixin selector named angerBeesLnet/minecraft/block/entity/BeehiveBlockEntity;angerBees(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)Vintermediary method_21850Lnet/minecraft/class_4482;method_21850(Lnet/minecraft/class_1657;Lnet/minecraft/class_2680;Lnet/minecraft/class_4482$class_4484;)Vofficial aLegd;a(Lczl;Lejm;Legd$b;)V
-
tryReleaseBee
- Mappings:
Namespace Name Mixin selector named tryReleaseBeeLnet/minecraft/block/entity/BeehiveBlockEntity;tryReleaseBee(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)Ljava/util/List;intermediary method_21852Lnet/minecraft/class_4482;method_21852(Lnet/minecraft/class_2680;Lnet/minecraft/class_4482$class_4484;)Ljava/util/List;official aLegd;a(Lejm;Legd$b;)Ljava/util/List;
-
getBeeCount
public int getBeeCount()- Mappings:
Namespace Name Mixin selector named getBeeCountLnet/minecraft/block/entity/BeehiveBlockEntity;getBeeCount()Iintermediary method_23903Lnet/minecraft/class_4482;method_23903()Iofficial fLegd;f()I
-
getHoneyLevel
- Mappings:
Namespace Name Mixin selector named getHoneyLevelLnet/minecraft/block/entity/BeehiveBlockEntity;getHoneyLevel(Lnet/minecraft/block/BlockState;)Iintermediary method_23902Lnet/minecraft/class_4482;method_23902(Lnet/minecraft/class_2680;)Iofficial aLegd;a(Lejm;)I
-
isSmoked
public boolean isSmoked()- Mappings:
Namespace Name Mixin selector named isSmokedLnet/minecraft/block/entity/BeehiveBlockEntity;isSmoked()Zintermediary method_23904Lnet/minecraft/class_4482;method_23904()Zofficial hLegd;h()Z
-
tryEnterHive
- Mappings:
Namespace Name Mixin selector named tryEnterHiveLnet/minecraft/block/entity/BeehiveBlockEntity;tryEnterHive(Lnet/minecraft/entity/passive/BeeEntity;)Vintermediary method_21848Lnet/minecraft/class_4482;method_21848(Lnet/minecraft/class_4466;)Vofficial aLegd;a(Lcqr;)V
-
addBee
- Mappings:
Namespace Name Mixin selector named addBeeLnet/minecraft/block/entity/BeehiveBlockEntity;addBee(Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeData;)Vintermediary method_35292Lnet/minecraft/class_4482;method_35292(Lnet/minecraft/class_4482$class_9309;)Vofficial aLegd;a(Legd$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 releaseBeeLnet/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;)Zintermediary method_21855Lnet/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;)Zofficial aLegd;a(Ldrq;Lja;Lejm;Legd$c;Ljava/util/List;Legd$b;Lja;)Z
-
hasFlowerPos
private boolean hasFlowerPos()- Mappings:
Namespace Name Mixin selector named hasFlowerPosLnet/minecraft/block/entity/BeehiveBlockEntity;hasFlowerPos()Zintermediary method_21857Lnet/minecraft/class_4482;method_21857()Zofficial kLegd;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 tickBeesLnet/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;)Vintermediary method_21858Lnet/minecraft/class_4482;method_21858(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/List;Lnet/minecraft/class_2338;)Vofficial aLegd;a(Ldrq;Lja;Lejm;Ljava/util/List;Lja;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, BeehiveBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/BeehiveBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BeehiveBlockEntity;)Vintermediary method_31656Lnet/minecraft/class_4482;method_31656(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_4482;)Vofficial aLegd;a(Ldrq;Lja;Lejm;Legd;)V
-
readData
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.
nbtmight 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:
readDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/block/entity/BlockEntity;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_11368;)Vofficial aLegg;a(Lfip;)V
-
writeData
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:
writeDatain classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/block/entity/BlockEntity;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_11372;)Vofficial aLegg;a(Lfir;)V
-
readComponents
- Overrides:
readComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named readComponentsLnet/minecraft/block/entity/BlockEntity;readComponents(Lnet/minecraft/component/ComponentsAccess;)Vintermediary method_57568Lnet/minecraft/class_2586;method_57568(Lnet/minecraft/class_9473;)Vofficial aLegg;a(Lkk;)V
-
addComponents
- Overrides:
addComponentsin classBlockEntity- Mappings:
Namespace Name Mixin selector named addComponentsLnet/minecraft/block/entity/BlockEntity;addComponents(Lnet/minecraft/component/ComponentMap$Builder;)Vintermediary method_57567Lnet/minecraft/class_2586;method_57567(Lnet/minecraft/class_9323$class_9324;)Vofficial aLegg;a(Lkm$a;)V
-
removeFromCopiedStackData
- Overrides:
removeFromCopiedStackDatain classBlockEntity- Mappings:
Namespace Name Mixin selector named removeFromCopiedStackDataLnet/minecraft/block/entity/BlockEntity;removeFromCopiedStackData(Lnet/minecraft/storage/WriteView;)Vintermediary method_57569Lnet/minecraft/class_2586;method_57569(Lnet/minecraft/class_11372;)Vofficial bLegg;b(Lfir;)V
-
createBeesData
- Mappings:
Namespace Name Mixin selector named createBeesDataLnet/minecraft/block/entity/BeehiveBlockEntity;createBeesData()Ljava/util/List;intermediary method_57580Lnet/minecraft/class_4482;method_57580()Ljava/util/List;official lLegd;l()Ljava/util/List;
-
registerTracking
- Specified by:
registerTrackingin interfaceDebugTrackable- Overrides:
registerTrackingin classBlockEntity- Mappings:
Namespace Name Mixin selector named registerTrackingLnet/minecraft/world/debug/DebugTrackable;registerTracking(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/debug/DebugTrackable$Tracker;)Vintermediary method_74589Lnet/minecraft/class_12023;method_74589(Lnet/minecraft/class_3218;Lnet/minecraft/class_12023$class_12024;)Vofficial aLbvv;a(Lawx;Lbvv$a;)V
-