Interface CollarColorable

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Damageable, DataComponentView, Entity, Frictional, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Metadatable, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, net.kyori.adventure.sound.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