Modifier and Type | Field and Description |
---|---|
protected int |
cachedActiveMobs |
Constructor and Description |
---|
MythicSpawner(String name,
AbstractLocation location,
String mobName) |
MythicSpawner(String name,
MythicConfig config) |
MythicSpawner(String name,
String group,
String mobName,
String world,
int x,
int y,
int z,
int radius,
int radiusY,
boolean useTimer,
PlaceholderInt maxMobs,
int mps,
String moblevel,
int cooldown,
int cooldownTimer,
int warmup,
int warmupTimer,
int activeRange,
double scalingRange,
int leashRange,
boolean leashHeal,
boolean leashResetThreat,
boolean showFlames,
boolean breakable,
int activeMobs,
boolean checkForPlayers,
ArrayList<String> conditions) |
Modifier and Type | Method and Description |
---|---|
void |
ActivateSpawner() |
boolean |
checkSpawnConditions() |
MythicSpawner |
clone() |
void |
Disable() |
double |
distanceTo(AbstractLocation abstractLocation) |
void |
doLeash(ActiveMob am) |
void |
Enable() |
Collection<UUID> |
getAssociatedMobs() |
String |
getChunkString() |
int |
getChunkX() |
int |
getChunkZ() |
List<String> |
getConditionList() |
int |
getCooldownSeconds() |
String |
getGroup()
Gets the spawner group the spawner is part of
|
int |
getInternalCooldown()
Returns the spawner's internal cooldown, which is set when no
players are in range, or the chunk or world are unloaded.
|
String |
getInternalName() |
String |
getName()
Gets the ID of the spawner
|
int |
getNumberOfCachedMobs() |
int |
getNumberOfMobs() |
int |
getRemainingCooldownSeconds() |
int |
getRemainingWarmupSeconds() |
String |
getTypeName()
Gets the mob type the spawner spawns
|
boolean |
getUseTimer() |
int |
getWarmupSeconds() |
String |
getWorldName() |
int |
hashCode() |
boolean |
isOnCooldown() |
boolean |
isOnWarmup() |
void |
Leash() |
void |
markMobDead(ActiveMob am) |
void |
markMobDespawned(ActiveMob am) |
boolean |
reattachToWorld() |
void |
resetTimers() |
void |
setAssociatedMobs(Collection<UUID> collection) |
void |
setCooldownSeconds(int cooldown)
Sets the spawner's cooldown time in seconds
|
void |
setGroup(String group)
Sets the spawner group the spawner is part of
|
void |
setInternalCooldown(int ic)
Sets the spawner's internal cooldown, which will cause the
spawner to go dormant for that many ticks
|
void |
setLocation(AbstractLocation location)
Sets the location of the spawner
|
void |
setName(String name)
Sets the ID of the spawner
|
void |
setOnCooldown()
Puts the spawner on cooldown
|
void |
setOnWarmup()
Puts the spawner on warmup
|
void |
setRemainingCooldownSeconds(long seconds)
Sets the spawner's remaining cooldown time, in seconds
|
void |
setRemainingWarmupSeconds(long seconds)
Sets the spawner's remaining warmup time, in seconds
|
void |
setType(MythicMob type)
Sets the mob type the spawner spawns
|
boolean |
setType(String type)
Sets the mob type the spawner spawns
|
void |
setTypes(Collection<MythicMob> types)
Sets the mob types the spawner spawns
|
void |
setTypes(io.lumine.utils.collections.WeightedCollection types)
Sets the mob types the spawner spawns
|
void |
setUseTimer(boolean bool) |
void |
setWarmupSeconds(int warmup)
Sets the spawner's warmup time in seconds
|
void |
setWorld(String worldName) |
Collection<ActiveMob> |
Spawn() |
void |
tickSpawnerClock()
Ticks the spawner's synchronous functions
|
void |
trackMob(ActiveMob am) |
void |
unloadSpawner() |
public MythicSpawner(String name, AbstractLocation location, String mobName)
public MythicSpawner(String name, MythicConfig config)
public MythicSpawner(String name, String group, String mobName, String world, int x, int y, int z, int radius, int radiusY, boolean useTimer, PlaceholderInt maxMobs, int mps, String moblevel, int cooldown, int cooldownTimer, int warmup, int warmupTimer, int activeRange, double scalingRange, int leashRange, boolean leashHeal, boolean leashResetThreat, boolean showFlames, boolean breakable, int activeMobs, boolean checkForPlayers, ArrayList<String> conditions)
public void unloadSpawner()
public String getName()
public void setName(String name)
name
- public String getGroup()
public void setGroup(String group)
group
- public String getTypeName()
public boolean setType(String type)
type
- public void setType(MythicMob type)
type
- public void setTypes(Collection<MythicMob> types)
types
- public void setTypes(io.lumine.utils.collections.WeightedCollection types)
types
- public void setLocation(AbstractLocation location)
location
- public String getWorldName()
public void setWorld(String worldName)
public void setOnCooldown()
public boolean isOnCooldown()
public int getCooldownSeconds()
public void setCooldownSeconds(int cooldown)
cooldown
- The cooldown time to set in secondspublic int getRemainingCooldownSeconds()
public void setRemainingCooldownSeconds(long seconds)
public void setOnWarmup()
public boolean isOnWarmup()
public int getWarmupSeconds()
public void setWarmupSeconds(int warmup)
warmup
- The warmup time to set in secondspublic int getRemainingWarmupSeconds()
public void setRemainingWarmupSeconds(long seconds)
public boolean getUseTimer()
public void setUseTimer(boolean bool)
public Collection<UUID> getAssociatedMobs()
public void setAssociatedMobs(Collection<UUID> collection)
public int getInternalCooldown()
public void setInternalCooldown(int ic)
public void tickSpawnerClock()
public void ActivateSpawner()
public boolean checkSpawnConditions()
public Collection<ActiveMob> Spawn()
public void Leash()
public void doLeash(ActiveMob am)
public void trackMob(ActiveMob am)
public void markMobDespawned(ActiveMob am)
public void markMobDead(ActiveMob am)
public boolean reattachToWorld()
public String getInternalName()
public int getNumberOfMobs()
public void Disable()
public void Enable()
public double distanceTo(AbstractLocation abstractLocation)
public MythicSpawner clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void resetTimers()
public int getChunkX()
public int getChunkZ()
public String getChunkString()
public int getNumberOfCachedMobs()
Copyright © 2020. All rights reserved.