Class BlockBeeNest

All Implemented Interfaces:
BlockEntityHolder<BlockEntityBeehive>, BlockID, IBlockState, IMutableBlockState, AxisAlignedBB, Metadatable, Faceable, Cloneable

@PowerNukkitOnly public class BlockBeeNest extends BlockBeehive
  • Constructor Details

  • Method Details

    • getId

      public int getId()
      Overrides:
      getId in class BlockBeehive
    • getName

      public String getName()
      Overrides:
      getName in class BlockBeehive
    • getBurnChance

      public int getBurnChance()
      Description copied from class: Block
      这个值越大,这个方块本身越容易起火 返回-1,这个方块不能被点燃

      The higher this value, the more likely the block itself is to catch fire

      Overrides:
      getBurnChance in class BlockBeehive
      Returns:
      the burn chance
    • getBurnAbility

      public int getBurnAbility()
      Description copied from class: Block
      这个值越大,越有可能被旁边的火焰引燃

      The higher this value, the more likely it is to be ignited by the fire next to it

      Overrides:
      getBurnAbility in class BlockBeehive
    • getHardness

      public double getHardness()
      Description copied from class: Block
      控制方块硬度
      Overrides:
      getHardness in class BlockBeehive
      Returns:
      方块的硬度
    • getResistance

      public double getResistance()
      Description copied from class: Block
      控制方块爆炸抗性
      Overrides:
      getResistance in class BlockBeehive
      Returns:
      方块的爆炸抗性
    • getDrops

      public Item[] getDrops(Item item)
      Description copied from class: Block
      控制方块被破坏时掉落的物品 常在Level.useBreakOn(Vector3, int, BlockFace, Item, Player, boolean, boolean)方法被调用
      Overrides:
      getDrops in class BlockBeehive
      Returns:
      掉落的物品数组