Class BlockCherryLog

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

@PowerNukkitXOnly @Since("1.20.0-r2") public class BlockCherryLog extends BlockLog
  • Constructor Details

    • BlockCherryLog

      public BlockCherryLog()
    • BlockCherryLog

      public BlockCherryLog(int meta)
  • Method Details

    • 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:
      方块的爆炸抗性
    • 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
    • getName

      public String getName()
      Specified by:
      getName in class Block
    • getId

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

      @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
      Specified by:
      getProperties in class BlockLog
    • getStrippedState

      public BlockState getStrippedState()
      Specified by:
      getStrippedState in interface IBlockWood
      Specified by:
      getStrippedState in class BlockLog