Class BlockIce

All Implemented Interfaces:
BlockID, IBlockState, IMutableBlockState, AxisAlignedBB, Metadatable, Cloneable
Direct Known Subclasses:
BlockIcePacked

public class BlockIce extends BlockTransparent
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

    • BlockIce

      public BlockIce()
  • Method Details

    • getId

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

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

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

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

      public double getFrictionFactor()
      Description copied from class: Block
      服务端侧的摩擦系数,用于控制玩家丢弃物品、实体、船其在上方移动的速度。值越大,移动越快。

      The friction on the server side, which is used to control the speed that player drops item,entity walk and boat movement on the block.The larger the value, the faster the movement.

      Overrides:
      getFrictionFactor in class Block
    • getToolType

      public int getToolType()
      Description copied from class: Block
      控制挖掘方块的工具类型
      Overrides:
      getToolType in class Block
      Returns:
      挖掘方块的工具类型
    • onBreak

      @PowerNukkitDifference(since="1.4.0.0-PN", info="Will not create water when it is above air") public boolean onBreak(Item item)
      Overrides:
      onBreak in class Block
    • onUpdate

      public int onUpdate(int type)
      Overrides:
      onUpdate in class Block
    • 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:
      掉落的物品数组
    • canSilkTouch

      public boolean canSilkTouch()
      Overrides:
      canSilkTouch 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
    • getLightFilter

      @Since("1.4.0.0-PN") @PowerNukkitOnly public int getLightFilter()
      Description copied from class: Block
      控制方块吸收的光亮
      Overrides:
      getLightFilter in class Block
      Returns:
      方块吸收的光亮