Add variant API to MushroomCow

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2019-04-26 14:48:04 +10:00
parent f52951980e
commit 3eb336e441

View file

@ -1,8 +1,38 @@
package org.bukkit.entity;
import org.jetbrains.annotations.NotNull;
/**
* Represents a mushroom {@link Cow}
*/
public interface MushroomCow extends Cow {
/**
* Get the variant of this cow.
*
* @return cow variant
*/
@NotNull
public Variant getVariant();
/**
* Set the variant of this cow.
*
* @param variant cow variant
*/
public void setVariant(@NotNull Variant variant);
/**
* Represents the variant of a cow - ie its color.
*/
public enum Variant {
/**
* Red mushroom cow.
*/
RED,
/**
* Brown mushroom cow.
*/
BROWN;
}
}