geforkt von Mirrors/Paper
Add variant API to MushroomCow
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
f52951980e
Commit
3eb336e441
@ -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;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren