Class BeehiveBlock

All Implemented Interfaces:
BlockEntityProvider, ItemConvertible

public class BeehiveBlock extends BlockWithEntity
Mappings:
Namespace Name
official ccs
intermediary net/minecraft/class_4481
named net/minecraft/block/BeehiveBlock
  • Field Details

    • GENERATE_DIRECTIONS

      private static final Direction[] GENERATE_DIRECTIONS
      Mappings:
      Namespace Name Mixin selector
      official d Lccs;d:[Lgm;
      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 Lccs;a:Lcox;
      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 Lccs;b:Lcpd;
      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
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lccs;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
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lccs;e:I
      intermediary field_31012 Lnet/minecraft/class_4481;field_31012:I
      named DROPPED_HONEYCOMB_COUNT Lnet/minecraft/block/BeehiveBlock;DROPPED_HONEYCOMB_COUNT:I
  • Constructor Details

    • BeehiveBlock

      public BeehiveBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcob;<init>(Lcob$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
  • Method Details

    • hasComparatorOutput

      public boolean hasComparatorOutput(BlockState state)
      Overrides:
      hasComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official d_ Lcob;d_(Lcoc;)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)
      Overrides:
      getComparatorOutput in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;)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)
      Overrides:
      afterBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcad;Lbnr;Lgh;Lcoc;Lclz;Lbue;)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 Lccs;b(Lcad;Lgh;)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 Lccs;a(Lcad;Lgh;)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.

      Overrides:
      onUse in class AbstractBlock
      Returns:
      an action result that specifies if using the block was successful.
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcad;Lgh;Lbnr;Lavp;Ldoi;)Lavq;
      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 Lccs;c(Lcad;Lgh;)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 Lccs;a(Lcad;Lcoc;Lgh;Lbnr;Lclw$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 Lccs;a(Lcad;Lcoc;Lgh;)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)
      Overrides:
      randomDisplayTick in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcoc;Lcad;Lgh;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 Lccs;a(Lcad;Lgh;Lcoc;)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 Lccs;a(Lcad;Lgh;Ldpf;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 Lccs;a(Lcad;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)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lbwe;)Lcoc;
      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)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcod$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)
      Overrides:
      getRenderType in class BlockWithEntity
      Mappings:
      Namespace Name Mixin selector
      official b_ Lcob;b_(Lcoc;)Lcin;
      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 Lcff;a(Lgh;Lcoc;)Lclz;
      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 Lcff;a(Lcad;Lcoc;Lcmb;)Lcma;
      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)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcad;Lgh;Lcoc;Lbnr;)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)
      Overrides:
      getDroppedStacks in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Ldka$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.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      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
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      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 Lccs;a(Ljava/util/Random;)Lgm;
      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;