summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityEvoker.patch
blob: 6d8b367a5a1ed0364fa8f727cb51fb166e8f4937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/net/minecraft/server/EntityEvoker.java
+++ b/net/minecraft/server/EntityEvoker.java
@@ -76,6 +76,12 @@
         this.datawatcher.set(EntityEvoker.a, Byte.valueOf((byte) i));
     }
 
+    // CraftBukkit start
+    public int getSpell() {
+        return this.datawatcher.get(EntityEvoker.a).intValue();
+    }
+    // CraftBukkit end
+
     private int di() {
         return this.b;
     }