use of net.minecraft.entity.monster.AbstractRaiderEntity in project Magma-1.16.x by magmafoundation.
the class CraftEventFactory method callRaidSpawnWaveEvent.
public static void callRaidSpawnWaveEvent(Raid raid, AbstractRaiderEntity leader, List<AbstractRaiderEntity> raiders) {
Raider craftLeader = (CraftRaider) leader.getBukkitEntity();
List<Raider> craftRaiders = new ArrayList<>();
for (AbstractRaiderEntity entityRaider : raiders) {
craftRaiders.add((Raider) entityRaider.getBukkitEntity());
}
RaidSpawnWaveEvent event = new RaidSpawnWaveEvent(new CraftRaid(raid), raid.getLevel().getWorldCB(), craftLeader, craftRaiders);
Bukkit.getPluginManager().callEvent(event);
}
use of net.minecraft.entity.monster.AbstractRaiderEntity in project LoliServer by Loli-Server.
the class CraftEventFactory method callRaidSpawnWaveEvent.
public static void callRaidSpawnWaveEvent(Raid raid, AbstractRaiderEntity leader, List<AbstractRaiderEntity> raiders) {
Raider craftLeader = (CraftRaider) leader.getBukkitEntity();
List<Raider> craftRaiders = new ArrayList<>();
for (AbstractRaiderEntity entityRaider : raiders) {
craftRaiders.add((Raider) entityRaider.getBukkitEntity());
}
RaidSpawnWaveEvent event = new RaidSpawnWaveEvent(new CraftRaid(raid), raid.getLevel().getWorld(), craftLeader, craftRaiders);
Bukkit.getPluginManager().callEvent(event);
}
Aggregations