Events, Spawns, Source Servers, and many more!

User Tools

Site Tools


Sidebar

home

issues

downloads


bukkit plugins

windows 8 apps

windows phone apps


Maintaining these plugins takes a lot of work, so if your server is enriched by them please consider sending some love my way!

If you're penniless I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldandtired

If you don't know what TF2 is, then start playing! It's free and fun!

mobsistence:main-api

The API class has the following methods

CountMobsInWorld

Counts how many mobs are in the collection for a given world

Parameters: World | world name
Returns: the count or -1 if the world isn't active in the config


FindAllMobsInWorld

Grabs all the mobs in a world's collection

Parameters: World | world name
Returns: a map of mobs stored by unique id or an empty map if the world is invalid or inactive


IsMobActive

Checks if a mob is in a world's collection

Parameters: LivingEntity | World and mob id | world name and mob id
Returns: true if the mob is in the world's collection, or false if it isn't or a parameter is invalid


RemoveAllMobs

Empties a world's collection

Parameters: World | world name


RemoveMob

Removes a mob from a world's collection

Parameters: LivingEntity | World and mob id | world name and mob id


StoreMob

Places a mob in a world's collection

Parameters: LivingEntity | Mob\\or world name
Notes: using a LivingEntity as the parameter will store a mob with no metadata. The plugin will automatically remove all such mobs when it shuts down unless some later event has added some metadata


TryFindMob

Grabs a specific mob from a world's collection

Parameters: LivingEntity | World and mob id | world name and mob id
Returns: a Mob or null if the mob isn't in the collection or a parameter is invalid

mobsistence/main-api.txt · Last modified: 2015/01/14 22:56 by sylian