Class BlockSlabWarped

All Implemented Interfaces:
BlockID, IBlockState, IMutableBlockState, AxisAlignedBB, Metadatable, Cloneable

@PowerNukkitOnly @Since("1.4.0.0-PN") public class BlockSlabWarped extends BlockSlab
  • Constructor Details

  • Method Details

    • getSlabName

      @PowerNukkitOnly public String getSlabName()
      Specified by:
      getSlabName in class BlockSlab
    • getId

      public int getId()
      Specified by:
      getId in class Block
    • isSameType

      @PowerNukkitOnly public boolean isSameType(BlockSlab slab)
      Specified by:
      isSameType in class BlockSlab
    • getToolType

      public int getToolType()
      Description copied from class: Block
      控制挖掘方块的工具类型
      Overrides:
      getToolType in class Block
      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 Block
      Returns:
      掉落的物品数组
    • getResistance

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

      public Item toItem()
      Overrides:
      toItem in class Block
    • 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 Block
      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 Block