From 62fbeeda2047c90f5ac9d391b4efdbe1ce839f59 Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Thu, 13 Nov 2014 19:14:14 -0800 Subject: [PATCH] Added Wither disguise. --- .../disguise/disguises/DisguiseWither.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseWither.java diff --git a/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseWither.java b/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseWither.java new file mode 100644 index 000000000..30367e810 --- /dev/null +++ b/Plugins/Mineplex.Core/src/mineplex/core/disguise/disguises/DisguiseWither.java @@ -0,0 +1,36 @@ +package mineplex.core.disguise.disguises; + +import org.bukkit.entity.EntityType; + +public class DisguiseWither extends DisguiseMonster +{ + public DisguiseWither(org.bukkit.entity.Entity entity) + { + super(EntityType.WITHER, entity); + + DataWatcher.a(17, new Integer(0)); + DataWatcher.a(18, new Integer(0)); + DataWatcher.a(19, new Integer(0)); + DataWatcher.a(20, new Integer(0)); + } + + public int ca() + { + return DataWatcher.getInt(20); + } + + public void s(int i) + { + DataWatcher.watch(20, Integer.valueOf(i)); + } + + public int t(int i) + { + return DataWatcher.getInt(17 + i); + } + + public void b(int i, int j) + { + DataWatcher.watch(17 + i, Integer.valueOf(j)); + } +}