public class MobSpawn
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
lvl
The level of the mob to spawn.
|
private io.lumine.xikage.mythicmobs.mobs.MythicMob |
mob
The mythic mob to spawn.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper |
mythicMobs
Access to the MythicMobs API.
|
private float |
x
The x position to spawn the mob.
|
private float |
y
The y position to spawn the mob.
|
private float |
z
The z position to spawn the mob.
|
| Constructor and Description |
|---|
MobSpawn(io.lumine.xikage.mythicmobs.mobs.MythicMob mob)
Creates a new mythic mob spawn trigger.
|
MobSpawn(java.lang.String mobString)
Creates a new mythic mob spawn trigger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCoordinates(float x,
float y,
float z)
Sets the coordinates for the mob to spawn.
|
void |
setLevel(int lvl)
Sets the level for the mob to spawn.
|
void |
spawn(org.bukkit.Location location)
Spawns the mob exactly at the given location.
|
void |
spawn(org.bukkit.World world)
Spawns the mob in the given world at the predefined coordinates.
|
private static io.lumine.xikage.mythicmobs.api.bukkit.BukkitAPIHelper mythicMobs
private float x
private float y
private float z
private int lvl
private io.lumine.xikage.mythicmobs.mobs.MythicMob mob
public MobSpawn(java.lang.String mobString)
mobString - The string to parse the mob from: "name x y z".public MobSpawn(io.lumine.xikage.mythicmobs.mobs.MythicMob mob)
mob - The mythic mob to spawn when triggered.public void setLevel(int lvl)
lvl - The level of the mob to spawn.public void setCoordinates(float x,
float y,
float z)
x - The x position to spawn the mob.y - The y position to spawn the mob.z - The z position to spawn the mob.public void spawn(org.bukkit.World world)
world - The world to spawn the mob in.public void spawn(org.bukkit.Location location)
location - The location to spawn the mob at.