接口 Snowman

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

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

    • isDerp

      boolean isDerp()
      Gets whether this snowman is in "derp mode", meaning it is not wearing a pumpkin.
      返回:
      True if the snowman is bald, false if it is wearing a pumpkin
    • setDerp

      void setDerp(boolean derpMode)
      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 to remove the pumpkin, false to add a pumpkin