mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
@@ -1,8 +1,38 @@
|
|||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a mushroom {@link Cow}
|
* Represents a mushroom {@link Cow}
|
||||||
*/
|
*/
|
||||||
public interface MushroomCow extends 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user