public static class ZombieEvent.SummonAidEvent extends ZombieEvent
EntityZombie#attackEntityFrom(DamageSource, float).
This event is fired via the ForgeEventFactory#fireZombieSummonAid(EntityZombie, World, int, int, int, EntityLivingBase, double).
customSummonedAid remains null, but can be populated with a custom EntityZombie which will be spawned.
world contains the world that this summoning is occurring in.
x contains the x-coordinate at which this summoning event is occurring.
y contains the y-coordinate at which this summoning event is occurring.
z contains the z-coordinate at which this summoning event is occurring.
attacker contains the living Entity that attacked and caused this event to fire.
summonChance contains the likelihood that a Zombie would successfully be summoned.
This event is not Cancelable.
This event has a result. Event.HasResult
Result#ALLOW Zombie is summoned.
Result#DENY Zombie is not summoned.
This event is fired on the MinecraftForge.EVENT_BUS.ZombieEvent.SummonAidEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
SummonAidEvent(ZombieEntity entity,
World world,
int x,
int y,
int z,
LivingEntity attacker,
double summonChance) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
LivingEntity |
getAttacker() |
ZombieEntity |
getCustomSummonedAid()
Populate this field to have a custom zombie instead of a normal zombie summoned
|
double |
getSummonChance() |
World |
getWorld() |
int |
getX() |
int |
getY() |
int |
getZ() |
void |
setCustomSummonedAid(ZombieEntity customSummonedAid) |
getSummonergetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic SummonAidEvent(ZombieEntity entity, World world, int x, int y, int z, LivingEntity attacker, double summonChance)
public ZombieEntity getCustomSummonedAid()
public void setCustomSummonedAid(ZombieEntity customSummonedAid)
public World getWorld()
public int getX()
public int getY()
public int getZ()
public LivingEntity getAttacker()
public double getSummonChance()