From 649f9d0349a1d523f3c44153605ebf457a7402c1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 23 Nov 2016 10:27:23 +1100 Subject: SPIGOT-2824: Llama Strength API --- src/main/java/org/bukkit/entity/Llama.java | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/entity/Llama.java b/src/main/java/org/bukkit/entity/Llama.java index fc574e49..4b11a2ad 100644 --- a/src/main/java/org/bukkit/entity/Llama.java +++ b/src/main/java/org/bukkit/entity/Llama.java @@ -31,19 +31,36 @@ public interface Llama extends ChestedHorse { } /** - * Gets the llamas's color. + * Gets the llama's color. * * @return a {@link Color} representing the llama's color */ - public Color getColor(); + Color getColor(); /** * Sets the llama's color. * * @param color a {@link Color} for this llama */ - public void setColor(Color color); + void setColor(Color color); + + /** + * Gets the llama's strength. A higher strength llama will have more + * inventory slots and be more threatening to entities. + * + * @return llama strength [1,5] + */ + int getStrength(); + + /** + * Gets the llama's strength. A higher strength llama will have more + * inventory slots and be more threatening to entities. Inventory slots are + * equal to strength * 3. + * + * @param strength llama strength [1,5] + */ + void setStrength(int strength); @Override - public LlamaInventory getInventory(); + LlamaInventory getInventory(); } -- cgit v1.2.3