Interface Snowman

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, Frictional, Golem, HoverEventSource<HoverEvent.ShowEntity>, Leashable, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, RangedEntity, ServerOperator, Shearable, Sound.Emitter

public interface Snowman extends Golem, RangedEntity, Shearable
Represents a snowman entity
  • Method Details

    • isDerp

      boolean isDerp()
      Gets whether this snowman is in "derp mode", meaning it is not wearing a pumpkin.
      Returns:
      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.
      Parameters:
      derpMode - True to remove the pumpkin, false to add a pumpkin
    • getSummoner

      @Nullable UUID getSummoner()
      Get the player that summoned this snowman
      Returns:
      UUID of summoner
    • setSummoner

      void setSummoner(@Nullable UUID summoner)
      Set the player that summoned this snowman
      Parameters:
      summoner - UUID of summoner