public class BukkitAPIHelper extends Object
BukkitAdapter
Constructor and Description |
---|
BukkitAPIHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
addThreat(org.bukkit.entity.Entity mob,
org.bukkit.entity.LivingEntity target,
double amount)
Increases threat for a target in a mob's threat table
|
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName) |
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName,
org.bukkit.entity.Entity trigger,
org.bukkit.Location origin,
Collection<org.bukkit.entity.Entity> eTargets,
Collection<org.bukkit.Location> lTargets,
float power) |
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName,
float power) |
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName,
org.bukkit.Location origin) |
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName,
org.bukkit.Location origin,
Collection<org.bukkit.entity.Entity> eTargets,
Collection<org.bukkit.Location> lTargets,
float power) |
boolean |
castSkill(org.bukkit.entity.Entity e,
String skillName,
org.bukkit.Location origin,
float power) |
MythicMob |
getMythicMob(String type)
Returns whether the given entity is a MythicMob
|
ActiveMob |
getMythicMobInstance(org.bukkit.entity.Entity e) |
boolean |
isMythicMob(org.bukkit.entity.Entity l) |
boolean |
isMythicMob(UUID u) |
boolean |
reduceThreat(org.bukkit.entity.Entity mob,
org.bukkit.entity.LivingEntity target,
double amount)
Reduces threat for a target in a mob's threat table
|
org.bukkit.entity.Entity |
spawnMythicMob(MythicMob type,
org.bukkit.Location location,
int level)
Spawns a Mythic Mob and returns the Bukkit Entity object
|
org.bukkit.entity.Entity |
spawnMythicMob(String type,
org.bukkit.Location location)
Spawns a Mythic Mob and returns the Bukkit Entity object
|
org.bukkit.entity.Entity |
spawnMythicMob(String type,
org.bukkit.Location location,
int level)
Spawns a Mythic Mob and returns the Bukkit Entity object
|
boolean |
taunt(org.bukkit.entity.Entity mob,
org.bukkit.entity.LivingEntity target)
Sets TARGET to 110% of the mob's target's threat value, and forces the mob to switch targets
|
public MythicMob getMythicMob(String type)
type
- The Bukkit Entity to checkpublic org.bukkit.entity.Entity spawnMythicMob(MythicMob type, org.bukkit.Location location, int level) throws InvalidMobTypeException
type
- The MythicMob type you are trying to spawnlocation
- The Bukkit location the mob should be spawned atlevel
- The level of the mob to spawnInvalidMobTypeException
public org.bukkit.entity.Entity spawnMythicMob(String type, org.bukkit.Location location) throws InvalidMobTypeException
type
- The name of the MythicMob you are trying to spawnlocation
- The Bukkit location the mob should be spawned atllInvalidMobTypeException
public org.bukkit.entity.Entity spawnMythicMob(String type, org.bukkit.Location location, int level) throws InvalidMobTypeException
type
- The name of the MythicMob you are trying to spawnlocation
- The Bukkit location the mob should be spawned atlevel
- The level of the mob to spawnInvalidMobTypeException
public boolean isMythicMob(org.bukkit.entity.Entity l)
public boolean isMythicMob(UUID u)
public ActiveMob getMythicMobInstance(org.bukkit.entity.Entity e)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName, float power)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName, org.bukkit.Location origin)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName, org.bukkit.Location origin, float power)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName, org.bukkit.Location origin, Collection<org.bukkit.entity.Entity> eTargets, Collection<org.bukkit.Location> lTargets, float power)
public boolean castSkill(org.bukkit.entity.Entity e, String skillName, org.bukkit.entity.Entity trigger, org.bukkit.Location origin, Collection<org.bukkit.entity.Entity> eTargets, Collection<org.bukkit.Location> lTargets, float power)
public boolean addThreat(org.bukkit.entity.Entity mob, org.bukkit.entity.LivingEntity target, double amount)
mob
- The MythicMob you want to increase threat fortarget
- The target that should have threat increasedamount
- The amount to increase threat bypublic boolean reduceThreat(org.bukkit.entity.Entity mob, org.bukkit.entity.LivingEntity target, double amount)
mob
- The MythicMob you want to reduce threat fortarget
- The target that should have threat reducedamount
- The amount to reduce threat bypublic boolean taunt(org.bukkit.entity.Entity mob, org.bukkit.entity.LivingEntity target)
mob
- The MythicMob you want to swap targetstarget
- The new target for the mobCopyright © 2020. All rights reserved.