Add Wither to ConditionFactory

This commit is contained in:
libraryaddict 2015-03-15 12:36:18 +13:00
parent ba04c5e834
commit f4b6a53adb

View File

@ -230,6 +230,14 @@ public class ConditionFactory
Material.WEB, (byte)0, showIndicator, ambient)); 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, public Condition Poison(String reason, LivingEntity ent, LivingEntity source,
double duration, int mult, boolean extend, boolean showIndicator, boolean ambient) double duration, int mult, boolean extend, boolean showIndicator, boolean ambient)
{ {