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. 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
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityLivingBase |
attacker |
private EntityZombie |
customSummonedAid |
private double |
summonChance |
private World |
world |
private int |
x |
private int |
y |
private int |
z |
Constructor and Description |
---|
SummonAidEvent(EntityZombie entity,
World world,
int x,
int y,
int z,
EntityLivingBase attacker,
double summonChance) |
Modifier and Type | Method and Description |
---|---|
EntityLivingBase |
getAttacker() |
EntityZombie |
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(EntityZombie customSummonedAid) |
getSummoner
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private EntityZombie customSummonedAid
private final World world
private final int x
private final int y
private final int z
private final EntityLivingBase attacker
private final double summonChance
public SummonAidEvent(EntityZombie entity, World world, int x, int y, int z, EntityLivingBase attacker, double summonChance)
public EntityZombie getCustomSummonedAid()
public void setCustomSummonedAid(EntityZombie customSummonedAid)
public World getWorld()
public int getX()
public int getY()
public int getZ()
public EntityLivingBase getAttacker()
public double getSummonChance()