From f4b6a53adb1f026d03b572885a332a77029dd565 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 15 Mar 2015 12:36:18 +1300 Subject: [PATCH] Add Wither to ConditionFactory --- .../minecraft/game/core/condition/ConditionFactory.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Plugins/Mineplex.Minecraft.Game.Core/src/mineplex/minecraft/game/core/condition/ConditionFactory.java b/Plugins/Mineplex.Minecraft.Game.Core/src/mineplex/minecraft/game/core/condition/ConditionFactory.java index e62a9d305..1b33dc14f 100644 --- a/Plugins/Mineplex.Minecraft.Game.Core/src/mineplex/minecraft/game/core/condition/ConditionFactory.java +++ b/Plugins/Mineplex.Minecraft.Game.Core/src/mineplex/minecraft/game/core/condition/ConditionFactory.java @@ -230,6 +230,14 @@ public class ConditionFactory Material.WEB, (byte)0, showIndicator, ambient)); } + public Condition Wither(String reason, LivingEntity ent, LivingEntity source, + double duration, int mult, boolean extend, boolean showIndicator, boolean ambient) + { + return Manager.AddCondition(new Condition(Manager, reason, ent, source, + ConditionType.WITHER, mult, (int)(20 * duration), extend, + Material.SKULL_ITEM, (byte)1, showIndicator, ambient)); + } + public Condition Poison(String reason, LivingEntity ent, LivingEntity source, double duration, int mult, boolean extend, boolean showIndicator, boolean ambient) {