Class BlockSoulSand

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

public class BlockSoulSand extends BlockSolid
Since:
27.12.2015
Author:
Pub4Game
  • Constructor Details

    • BlockSoulSand

      public BlockSoulSand()
  • Method Details

    • getName

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

      public int getId()
      Specified by:
      getId in class Block
    • 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:
      挖掘方块的工具类型
    • getMaxY

      @PowerNukkitDifference(since="1.4.0.0-PN", info="Fixed MaxY BB, soul sand is a normal full cube in Bedrock Edition") public double getMaxY()
      Specified by:
      getMaxY in interface AxisAlignedBB
      Overrides:
      getMaxY in class Block
    • hasEntityCollision

      public boolean hasEntityCollision()
      Overrides:
      hasEntityCollision in class Block
    • isSoulSpeedCompatible

      @PowerNukkitOnly public boolean isSoulSpeedCompatible()
      Overrides:
      isSoulSpeedCompatible in class Block
    • onEntityCollide

      public void onEntityCollide(Entity entity)
      Overrides:
      onEntityCollide in class Block
    • onUpdate

      public int onUpdate(int type)
      Overrides:
      onUpdate in class Block