mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Add variant API to MushroomCow
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f52951980e
commit
3eb336e441
1 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue