Add Wither to ConditionFactory
This commit is contained in:
parent
ba04c5e834
commit
f4b6a53adb
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user