summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftLlama.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLlama.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLlama.java
index 9dde90fa..45e17db5 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLlama.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLlama.java
@@ -38,6 +38,19 @@ public class CraftLlama extends CraftChestedHorse implements Llama {
}
@Override
+ public int getStrength() {
+ return getHandle().dL();
+ }
+
+ @Override
+ public void setStrength(int strength) {
+ Preconditions.checkArgument(1 <= strength && strength <= 5, "strength must be [1,5]");
+ if (strength == getStrength()) return;
+ getHandle().p(strength);
+ getHandle().dx();
+ }
+
+ @Override
public Horse.Variant getVariant() {
return Horse.Variant.LLAMA;
}