Class BlockIcePacked

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

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

    • BlockIcePacked

      public BlockIcePacked()
  • Method Details

    • getId

      public int getId()
      Overrides:
      getId in class BlockIce
    • getName

      public String getName()
      Overrides:
      getName in class BlockIce
    • getToolType

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

      public int onUpdate(int type)
      Overrides:
      onUpdate in class BlockIce
    • canHarvestWithHand

      public boolean canHarvestWithHand()
      Overrides:
      canHarvestWithHand in class Block
    • onBreak

      public boolean onBreak(Item item)
      Overrides:
      onBreak in class BlockIce
    • canSilkTouch

      public boolean canSilkTouch()
      Overrides:
      canSilkTouch in class BlockIce
    • isTransparent

      @PowerNukkitDifference(since="1.4.0.0-PN", info="Returns false ") public boolean isTransparent()
      Description copied from class: Block
      控制方块是否透明(默认为false)
      Overrides:
      isTransparent in class BlockTransparent
      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 BlockIce
      Returns:
      the burn chance
    • getLightFilter

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