Add EntityDyeEvent and CollarColorable interface

This commit is contained in:
Jake Potrebic
2022-03-18 21:16:38 -07:00
parent 913f5c7c9e
commit 495ba77d85
5 changed files with 117 additions and 62 deletions

View File

@@ -0,0 +1,26 @@
package io.papermc.paper.entity;
import org.bukkit.DyeColor;
import org.bukkit.entity.LivingEntity;
import org.jspecify.annotations.NullMarked;
/**
* Entities that can have their collars colored.
*/
@NullMarked
public interface CollarColorable extends LivingEntity {
/**
* Get the collar color of this entity
*
* @return the color of the collar
*/
DyeColor getCollarColor();
/**
* Set the collar color of this entity
*
* @param color the color to apply
*/
void setCollarColor(DyeColor color);
}