mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-4784: Collar colour API for Cats
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c118b02278
commit
b554f3f183
1 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package org.bukkit.entity;
|
||||
|
||||
import org.bukkit.DyeColor;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -22,6 +23,21 @@ public interface Cat extends Animals, Tameable, Sittable {
|
|||
*/
|
||||
public void setCatType(@NotNull Type type);
|
||||
|
||||
/**
|
||||
* Get the collar color of this cat
|
||||
*
|
||||
* @return the color of the collar
|
||||
*/
|
||||
@NotNull
|
||||
public DyeColor getCollarColor();
|
||||
|
||||
/**
|
||||
* Set the collar color of this cat
|
||||
*
|
||||
* @param color the color to apply
|
||||
*/
|
||||
public void setCollarColor(@NotNull DyeColor color);
|
||||
|
||||
/**
|
||||
* Represents the various different cat types there are.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue