From 3eb336e441d98f2e60f3e33335a7fa0483390826 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 26 Apr 2019 14:48:04 +1000 Subject: [PATCH] Add variant API to MushroomCow By: md_5 --- .../java/org/bukkit/entity/MushroomCow.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/MushroomCow.java b/paper-api/src/main/java/org/bukkit/entity/MushroomCow.java index 84154de1a1..939a3dbfcf 100644 --- a/paper-api/src/main/java/org/bukkit/entity/MushroomCow.java +++ b/paper-api/src/main/java/org/bukkit/entity/MushroomCow.java @@ -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; + } }