接口 Snowman

所有超级接口:
Attributable, CommandSender, Creature, Damageable, Entity, Golem, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Snowman extends Golem
代表雪人实体.
  • 方法详细资料

    • isDerp

      boolean isDerp()
      获得此雪人是否处于" derp 模式", 即它没有戴着南瓜.

      原文: Gets whether this snowman is in "derp mode", meaning it is not wearing a pumpkin.

      返回:
      如果雪人没有戴南瓜则返回true, 如果戴着南瓜则返回false
    • setDerp

      void setDerp(boolean derpMode)
      设置此雪人是否处于" derp 模式", 即它没有戴着南瓜.
      注意: 此值不会持久化到磁盘, 因此当区块重新加载时会重置.

      原文: Sets whether this snowman is in "derp mode", meaning it is not wearing a pumpkin. NOTE: This value is not persisted to disk and will therefore reset when the chunk is reloaded.

      参数:
      derpMode - 为true以移除南瓜, 为false以添加南瓜