Class BlockMycelium

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

public class BlockMycelium extends BlockSolid
Since:
03.01.2016
Author:
Pub4Game
  • Constructor Details

    • BlockMycelium

      public BlockMycelium()
  • Method Details

    • getName

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

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

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

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

      public boolean canSilkTouch()
      Overrides:
      canSilkTouch in class Block
    • canBeActivated

      public boolean canBeActivated()
      Overrides:
      canBeActivated in class Block
    • onActivate

      public boolean onActivate(@NotNull Item item, Player player)
      Overrides:
      onActivate in class Block