Search in sources :

Example 1 with SummonAidEvent

use of net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent in project MinecraftForge by MinecraftForge.

the class ForgeEventFactory method fireZombieSummonAid.

public static SummonAidEvent fireZombieSummonAid(EntityZombie zombie, World world, int x, int y, int z, EntityLivingBase attacker, double summonChance) {
    SummonAidEvent summonEvent = new SummonAidEvent(zombie, world, x, y, z, attacker, summonChance);
    MinecraftForge.EVENT_BUS.post(summonEvent);
    return summonEvent;
}
Also used : SummonAidEvent(net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent)

Example 2 with SummonAidEvent

use of net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent in project MinecraftForge by MinecraftForge.

the class ForgeEventFactory method fireZombieSummonAid.

public static SummonAidEvent fireZombieSummonAid(Zombie zombie, Level world, int x, int y, int z, LivingEntity attacker, double summonChance) {
    SummonAidEvent summonEvent = new SummonAidEvent(zombie, world, x, y, z, attacker, summonChance);
    MinecraftForge.EVENT_BUS.post(summonEvent);
    return summonEvent;
}
Also used : SummonAidEvent(net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent)

Aggregations

SummonAidEvent (net.minecraftforge.event.entity.living.ZombieEvent.SummonAidEvent)2