Class BlockDoubleSlabCrimson

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

@PowerNukkitOnly @Since("1.4.0.0-PN") public class BlockDoubleSlabCrimson extends BlockDoubleSlabBase
  • Constructor Details

  • Method Details

    • getId

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

      @Since("1.4.0.0-PN") @PowerNukkitOnly @NotNull public BlockProperties getProperties()
      Description copied from class: Block
      The properties that fully describe all possible and valid states that this block can have.
      Specified by:
      getProperties in interface IBlockState
      Overrides:
      getProperties in class BlockDoubleSlabBase
    • getSlabName

      @PowerNukkitOnly public String getSlabName()
      Specified by:
      getSlabName in class BlockDoubleSlabBase
    • getSingleSlabId

      @PowerNukkitOnly public int getSingleSlabId()
      Specified by:
      getSingleSlabId in class BlockDoubleSlabBase
    • isCorrectTool

      @PowerNukkitOnly protected boolean isCorrectTool(Item item)
      Overrides:
      isCorrectTool in class BlockDoubleSlabBase
    • getHardness

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

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

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