use of org.bukkit.craftbukkit.v1_16_R3.entity.CraftRaider in project Mohist by MohistMC.
the class CraftEventFactory method callRaidSpawnWaveEvent.
public static void callRaidSpawnWaveEvent(Raid raid, Raider leader, List<Raider> raiders) {
org.bukkit.entity.Raider craftLeader = (CraftRaider) leader.getBukkitEntity();
List<org.bukkit.entity.Raider> craftRaiders = new ArrayList<>();
for (Raider entityRaider : raiders) {
craftRaiders.add((org.bukkit.entity.Raider) entityRaider.getBukkitEntity());
}
RaidSpawnWaveEvent event = new RaidSpawnWaveEvent(new CraftRaid(raid), raid.getLevel().getWorld(), craftLeader, craftRaiders);
Bukkit.getPluginManager().callEvent(event);
}
use of org.bukkit.craftbukkit.v1_16_R3.entity.CraftRaider 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 org.bukkit.craftbukkit.v1_16_R3.entity.CraftRaider 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