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.SummonAidEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private LivingEntity |
attacker |
private ZombieEntity |
customSummonedAid |
private double |
summonChance |
private World |
world |
private int |
x |
private int |
y |
private int |
z |
Constructor and Description |
---|
SummonAidEvent(ZombieEntity entity,
World world,
int x,
int y,
int z,
LivingEntity attacker,
double summonChance) |
Modifier and Type | Method and Description |
---|---|
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) |
getSummoner
getEntity
private ZombieEntity customSummonedAid
private final World world
private final int x
private final int y
private final int z
private final LivingEntity attacker
private final double summonChance
public 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()