Interface CollarColorable

All Superinterfaces:
Attributable, Audience, CommandSender, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter
All Known Subinterfaces:
Cat, Wolf

@NullMarked public interface CollarColorable extends LivingEntity
Entities that can have their collars colored.
  • Method Details

    • getCollarColor

      DyeColor getCollarColor()
      Get the collar color of this entity
      Returns:
      the color of the collar
    • setCollarColor

      void setCollarColor(DyeColor color)
      Set the collar color of this entity
      Parameters:
      color - the color to apply