接口 FallingBlock

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, ServerOperator

public interface FallingBlock extends Entity
Represents a falling block
  • 方法详细资料

    • getMaterial

      Material getMaterial()
      Get the Material of the falling block
      返回:
      Material of the block
    • getBlockId

      @Deprecated int getBlockId()
      已过时。
      Magic value
      Get the ID of the falling block
      返回:
      ID type of the block
    • getBlockData

      @Deprecated byte getBlockData()
      已过时。
      Magic value
      Get the data for the falling block
      返回:
      data of the block
    • getDropItem

      boolean getDropItem()
      Get if the falling block will break into an item if it cannot be placed
      返回:
      true if the block will break into an item when obstructed
    • setDropItem

      void setDropItem(boolean drop)
      Set if the falling block will break into an item if it cannot be placed
      参数:
      drop - true to break into an item when obstructed
    • canHurtEntities

      boolean canHurtEntities()
      Get the HurtEntities state of this block.
      返回:
      whether entities will be damaged by this block.
    • setHurtEntities

      void setHurtEntities(boolean hurtEntities)
      Set the HurtEntities state of this block.
      参数:
      hurtEntities - whether entities will be damaged by this block.