Class ZombieEvent.SummonAidEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.ZombieEvent
net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent
- Enclosing class:
- ZombieEvent
SummonAidEvent is fired when a Zombie Entity is summoned.
 This event is fired whenever a Zombie Entity is summoned in
 
Zombie#actuallyHurt(DamageSource, float).
 This event is fired via the ForgeEventFactory.fireZombieSummonAid(Zombie, Level, int, int, int, LivingEntity, double).
 getCustomSummonedAid() remains null, but can be populated with a custom EntityZombie which will be spawned.
 getLevel() contains the world that this summoning is occurring in.
 getX() contains the x-coordinate at which this summoning event is occurring.
 getY() contains the y-coordinate at which this summoning event is occurring.
 getZ() contains the z-coordinate at which this summoning event is occurring.
 getAttacker() contains the living Entity that attacked and caused this event to fire.
 getSummonChance() contains the likelihood that a Zombie would successfully be summoned.
 This event is not Cancelable.
 This event has a result. Event.HasResult
 Event.Result.ALLOW Zombie is summoned.
 Event.Result.DENY Zombie is not summoned.
 This event is fired on the MinecraftForge.EVENT_BUS.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.ZombieEventZombieEvent.SummonAidEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LivingEntityprivate Zombieprivate final Levelprivate final doubleprivate final intprivate final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionSummonAidEvent(Zombie zombie, Level level, int x, int y, int z, LivingEntity attacker, double summonChance) 
- 
Method SummaryMethods inherited from class net.minecraftforge.event.entity.living.ZombieEventgetEntityMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
customSummonedAid
- 
level
- 
xprivate final int x
- 
yprivate final int y
- 
zprivate final int z
- 
attacker
- 
summonChanceprivate final double summonChance
 
- 
- 
Constructor Details- 
SummonAidEventpublic SummonAidEvent(Zombie zombie, Level level, int x, int y, int z, LivingEntity attacker, double summonChance) 
 
- 
- 
Method Details- 
getCustomSummonedAidPopulate this field to have a custom zombie instead of a normal zombie summoned
- 
setCustomSummonedAid
- 
getLevel
- 
getXpublic int getX()
- 
getYpublic int getY()
- 
getZpublic int getZ()
- 
getAttacker
- 
getSummonChancepublic double getSummonChance()
 
-