类 BeehiveBlock

    • 字段详细资料

      • GENERATE_DIRECTIONS

        private static final Direction[] GENERATE_DIRECTIONS
        Mappings:
        Namespace Name Mixin selector
        official d Lbyk;d:[Lgg;
        intermediary field_20418 Lnet/minecraft/class_4481;field_20418:[Lnet/minecraft/class_2350;
        named GENERATE_DIRECTIONS Lnet/minecraft/block/BeehiveBlock;GENERATE_DIRECTIONS:[Lnet/minecraft/util/math/Direction;
      • FACING

        public static final DirectionProperty FACING
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a:Lckl;
        intermediary field_20419 Lnet/minecraft/class_4481;field_20419:Lnet/minecraft/class_2753;
        named FACING Lnet/minecraft/block/BeehiveBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
      • HONEY_LEVEL

        public static final IntProperty HONEY_LEVEL
        Mappings:
        Namespace Name Mixin selector
        official b Lbyk;b:Lckr;
        intermediary field_20420 Lnet/minecraft/class_4481;field_20420:Lnet/minecraft/class_2758;
        named HONEY_LEVEL Lnet/minecraft/block/BeehiveBlock;HONEY_LEVEL:Lnet/minecraft/state/property/IntProperty;
      • FULL_HONEY_LEVEL

        public static final int FULL_HONEY_LEVEL
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lbyk;c:I
        intermediary field_31011 Lnet/minecraft/class_4481;field_31011:I
        named FULL_HONEY_LEVEL Lnet/minecraft/block/BeehiveBlock;FULL_HONEY_LEVEL:I
      • DROPPED_HONEYCOMB_COUNT

        private static final int DROPPED_HONEYCOMB_COUNT
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lbyk;e:I
        intermediary field_31012 Lnet/minecraft/class_4481;field_31012:I
        named DROPPED_HONEYCOMB_COUNT Lnet/minecraft/block/BeehiveBlock;DROPPED_HONEYCOMB_COUNT:I
    • 构造器详细资料

      • BeehiveBlock

        public BeehiveBlock​(AbstractBlock.Settings settings)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcjq;<init>(Lcjq$c;)V
        intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
        named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
    • 方法详细资料

      • hasComparatorOutput

        public boolean hasComparatorOutput​(BlockState state)
        覆盖:
        hasComparatorOutput 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official g_ Lcjq;g_(Lcjr;)Z
        intermediary method_9498 Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z
        named hasComparatorOutput Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z
      • getComparatorOutput

        public int getComparatorOutput​(BlockState state,
                                       World world,
                                       BlockPos pos)
        覆盖:
        getComparatorOutput 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;)I
        intermediary method_9572 Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I
        named getComparatorOutput Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
      • afterBreak

        public void afterBreak​(World world,
                               PlayerEntity player,
                               BlockPos pos,
                               BlockState state,
                               @Nullable
                               @Nullable BlockEntity blockEntity,
                               ItemStack stack)
        覆盖:
        afterBreak 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lbjf;Lgb;Lcjr;Lchp;Lbpr;)V
        intermediary method_9556 Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
        named afterBreak Lnet/minecraft/block/Block;afterBreak(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
      • angerNearbyBees

        private void angerNearbyBees​(World world,
                                     BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official b Lbyk;b(Lbvr;Lgb;)V
        intermediary method_23893 Lnet/minecraft/class_4481;method_23893(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named angerNearbyBees Lnet/minecraft/block/BeehiveBlock;angerNearbyBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      • dropHoneycomb

        public static void dropHoneycomb​(World world,
                                         BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;Lgb;)V
        intermediary method_21842 Lnet/minecraft/class_4481;method_21842(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
        named dropHoneycomb Lnet/minecraft/block/BeehiveBlock;dropHoneycomb(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      • onUse

        public ActionResult onUse​(BlockState state,
                                  World world,
                                  BlockPos pos,
                                  PlayerEntity player,
                                  Hand hand,
                                  BlockHitResult hit)
        Called when this block is used by a player. This, by default, is bound to using the right mouse button.

        This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using world.isClient().

        If the action result is successful on a logical client, then the action will be sent to the logical server for processing.

        覆盖:
        onUse 在类中 AbstractBlock
        返回:
        an action result that specifies if using the block was successful.
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lbvr;Lgb;Lbjf;Larf;Ldlw;)Larg;
        intermediary method_9534 Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;
        named onUse Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
      • hasBees

        private boolean hasBees​(World world,
                                BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official c Lbyk;c(Lbvr;Lgb;)Z
        intermediary method_23894 Lnet/minecraft/class_4481;method_23894(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
        named hasBees Lnet/minecraft/block/BeehiveBlock;hasBees(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
      • takeHoney

        public void takeHoney​(World world,
                              BlockState state,
                              BlockPos pos,
                              @Nullable
                              @Nullable PlayerEntity player,
                              BeehiveBlockEntity.BeeState beeState)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;Lcjr;Lgb;Lbjf;Lchm$b;)V
        intermediary method_21841 Lnet/minecraft/class_4481;method_21841(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_4482$class_4484;)V
        named takeHoney Lnet/minecraft/block/BeehiveBlock;takeHoney(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/entity/BeehiveBlockEntity$BeeState;)V
      • takeHoney

        public void takeHoney​(World world,
                              BlockState state,
                              BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;Lcjr;Lgb;)V
        intermediary method_23754 Lnet/minecraft/class_4481;method_23754(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
        named takeHoney Lnet/minecraft/block/BeehiveBlock;takeHoney(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
      • randomDisplayTick

        public void randomDisplayTick​(BlockState state,
                                      World world,
                                      BlockPos pos,
                                      Random random)
        覆盖:
        randomDisplayTick 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjr;Lbvr;Lgb;Ljava/util/Random;)V
        intermediary method_9496 Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
        named randomDisplayTick Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
      • spawnHoneyParticles

        private void spawnHoneyParticles​(World world,
                                         BlockPos pos,
                                         BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;Lgb;Lcjr;)V
        intermediary method_21843 Lnet/minecraft/class_4481;method_21843(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
        named spawnHoneyParticles Lnet/minecraft/block/BeehiveBlock;spawnHoneyParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      • addHoneyParticle

        private void addHoneyParticle​(World world,
                                      BlockPos pos,
                                      VoxelShape shape,
                                      double height)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;Lgb;Ldmt;D)V
        intermediary method_21844 Lnet/minecraft/class_4481;method_21844(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_265;D)V
        named addHoneyParticle Lnet/minecraft/block/BeehiveBlock;addHoneyParticle(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/shape/VoxelShape;D)V
      • addHoneyParticle

        private void addHoneyParticle​(World world,
                                      double minX,
                                      double maxX,
                                      double minZ,
                                      double maxZ,
                                      double height)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Lbvr;DDDDD)V
        intermediary method_21840 Lnet/minecraft/class_4481;method_21840(Lnet/minecraft/class_1937;DDDDD)V
        named addHoneyParticle Lnet/minecraft/block/BeehiveBlock;addHoneyParticle(Lnet/minecraft/world/World;DDDDD)V
      • getPlacementState

        public BlockState getPlacementState​(ItemPlacementContext ctx)
        覆盖:
        getPlacementState 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbrr;)Lcjr;
        intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
        named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
      • appendProperties

        protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
        覆盖:
        appendProperties 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lcjs$a;)V
        intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
        named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
      • getRenderType

        public BlockRenderType getRenderType​(BlockState state)
        覆盖:
        getRenderType 在类中 BlockWithEntity
        Mappings:
        Namespace Name Mixin selector
        official b_ Lcjq;b_(Lcjr;)Lced;
        intermediary method_9604 Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
        named getRenderType Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
      • createBlockEntity

        @Nullable
        public @Nullable BlockEntity createBlockEntity​(BlockPos pos,
                                                       BlockState state)
        Mappings:
        Namespace Name Mixin selector
        official a Lcax;a(Lgb;Lcjr;)Lchp;
        intermediary method_10123 Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;
        named createBlockEntity Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
      • getTicker

        @Nullable
        public <T extends BlockEntity> @Nullable BlockEntityTicker<T> getTicker​(World world,
                                                                                BlockState state,
                                                                                BlockEntityType<T> type)
        Mappings:
        Namespace Name Mixin selector
        official a Lcax;a(Lbvr;Lcjr;Lchr;)Lchq;
        intermediary method_31645 Lnet/minecraft/class_2343;method_31645(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2591;)Lnet/minecraft/class_5558;
        named getTicker Lnet/minecraft/block/BlockEntityProvider;getTicker(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/block/entity/BlockEntityTicker;
      • onBreak

        public void onBreak​(World world,
                            BlockPos pos,
                            BlockState state,
                            PlayerEntity player)
        覆盖:
        onBreak 在类中 Block
        Mappings:
        Namespace Name Mixin selector
        official a Lbyq;a(Lbvr;Lgb;Lcjr;Lbjf;)V
        intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
        named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
      • getDroppedStacks

        public List<ItemStack> getDroppedStacks​(BlockState state,
                                                LootContext.Builder builder)
        覆盖:
        getDroppedStacks 在类中 AbstractBlock
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Ldhp$a;)Ljava/util/List;
        intermediary method_9560 Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_47$class_48;)Ljava/util/List;
        named getDroppedStacks Lnet/minecraft/block/AbstractBlock;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/loot/context/LootContext$Builder;)Ljava/util/List;
      • getStateForNeighborUpdate

        public BlockState getStateForNeighborUpdate​(BlockState state,
                                                    Direction direction,
                                                    BlockState neighborState,
                                                    WorldAccess world,
                                                    BlockPos pos,
                                                    BlockPos neighborPos)
        Gets the possibly updated block state of this block when a neighboring block is updated.
        覆盖:
        getStateForNeighborUpdate 在类中 AbstractBlock
        参数:
        state - the state of this block
        direction - the direction from this block to the neighbor
        neighborState - the state of the updated neighbor block
        world - the world
        pos - the position of this block
        neighborPos - the position of the neighbor block
        返回:
        the new state of this block
        Mappings:
        Namespace Name Mixin selector
        official a Lcjq;a(Lcjr;Lgg;Lcjr;Lbvs;Lgb;Lgb;)Lcjr;
        intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
        named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      • getRandomGenerationDirection

        public static Direction getRandomGenerationDirection​(Random random)
        Mappings:
        Namespace Name Mixin selector
        official a Lbyk;a(Ljava/util/Random;)Lgg;
        intermediary method_26978 Lnet/minecraft/class_4481;method_26978(Ljava/util/Random;)Lnet/minecraft/class_2350;
        named getRandomGenerationDirection Lnet/minecraft/block/BeehiveBlock;getRandomGenerationDirection(Ljava/util/Random;)Lnet/minecraft/util/math/Direction;