Interface Snowman

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, Entity, Golem, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, RangedEntity, ServerOperator

public interface Snowman extends Golem, RangedEntity
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