接口 Creeper

所有超级接口:
Attributable, CommandSender, Creature, Damageable, Entity, LivingEntity, Metadatable, Monster, Nameable, Permissible, ProjectileSource, ServerOperator

public interface Creeper extends Monster
代表爬行者.
  • 方法详细资料

    • isPowered

      boolean isPowered()
      检查这个爬行者是否为高压的(触电)

      原文: Checks if this Creeper is powered (Electrocuted)

      返回:
      true if 如果爬行者是高压的则为true
    • setPowered

      void setPowered(boolean value)
      设置这个爬行者为高压状态.

      原文: Sets the Powered status of this Creeper

      参数:
      value - 新的高压状态
    • setMaxFuseTicks

      void setMaxFuseTicks(int ticks)
      Set the maximum fuse ticks for this Creeper, where the maximum ticks is the amount of time in which a creeper is allowed to be in the primed state before exploding.
      参数:
      ticks - the new maximum fuse ticks
    • getMaxFuseTicks

      int getMaxFuseTicks()
      Get the maximum fuse ticks for this Creeper, where the maximum ticks is the amount of time in which a creeper is allowed to be in the primed state before exploding.
      返回:
      the maximum fuse ticks
    • setExplosionRadius

      void setExplosionRadius(int radius)
      Set the explosion radius in which this Creeper's explosion will affect.
      参数:
      radius - the new explosion radius
    • getExplosionRadius

      int getExplosionRadius()
      Get the explosion radius in which this Creeper's explosion will affect.
      返回:
      the explosion radius