public class MobRegistry extends Object implements io.lumine.utils.terminable.Terminable
Constructor and Description |
---|
MobRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ActiveMob |
get(UUID uniqueId) |
Optional<ActiveMob> |
getActiveMob(UUID uuid)
Returns the instance of a registered
|
boolean |
isActiveMob(UUID uuid)
Returns whether a UUID corresponds to a registered Mythic Mob
|
void |
loadSaved() |
void |
put(UUID uuid,
ActiveMob mob) |
void |
removeMob(UUID uuid) |
void |
setInactive(UUID uuid) |
Collection<ActiveMob> |
values() |
public void loadSaved()
public void close()
close
in interface io.lumine.utils.terminable.Terminable
close
in interface AutoCloseable
public boolean isActiveMob(UUID uuid)
uuid
- The UUID to checkpublic Optional<ActiveMob> getActiveMob(UUID uuid)
uuid
- public Collection<ActiveMob> values()
public void setInactive(UUID uuid)
public void removeMob(UUID uuid)
Copyright © 2020. All rights reserved.