接口 Explosive

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, ServerOperator
所有已知子接口:
DragonFireball, Fireball, LargeFireball, SmallFireball, TNTPrimed, WitherSkull

public interface Explosive extends Entity
A representation of an explosive entity
  • 方法详细资料

    • setYield

      void setYield(float yield)
      Set the radius affected by this explosive's explosion
      参数:
      yield - The explosive yield
    • getYield

      float getYield()
      Return the radius or yield of this explosive's explosion
      返回:
      the radius of blocks affected
    • setIsIncendiary

      void setIsIncendiary(boolean isIncendiary)
      Set whether or not this explosive's explosion causes fire
      参数:
      isIncendiary - Whether it should cause fire
    • isIncendiary

      boolean isIncendiary()
      Return whether or not this explosive creates a fire when exploding
      返回:
      true if the explosive creates fire, false otherwise