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:mob-api

The Mob class has the following methods

CountAllMetadata

Returns: the total count (flag + numeric + string + string list)


CountFlagMetadata

Returns: the number of flags (boolean) values set


CountNumericMetadata

Returns: the number of numeric (Double) value set


CountStringMetadata

Returns: the total count (flag + numeric + string + string list)


CountStringListMetadata

Returns: the number of strings set


FindFlagMetadata

Returns: a Map<String, Boolean>


FindNumericMetadata

Returns: a Map<String, Double>


FindStringMetadata

Returns: a Map<String, String>


FindStringListMetadata

Returns: a Map<String, List<String»


HasMetadata

Checks whether the mob has any metadata set

Returns: boolean


HasFlagMetadata

Checks whether the mob has any flag metadata set, or has a specific item

Parameters: metadata name | nothing
Returns: boolean


HasNumericMetadata

Checks whether the mob has any numeric metadata set, or has a specific item

Parameters: metadata name | nothing
Returns: boolean


HasStringMetadata

Checks whether the mob has any string metadata set, or has a specific item

Parameters: metadata name | nothing
Returns: boolean


HasStringListMetadata

Checks whether the mob has any string list metadata set, or has a specific item

Parameters: metadata name | nothing
Returns: boolean


RemoveAllMetadata

Clears the mob's metadata

RemoveFlagMetadata

Clears the mob's flag metadata, or removes a specific item

Parameters: metadata name | nothing


RemoveNumericMetadata

Clears the mob's numeric metadata, or removes a specific item

Parameters: metadata name | nothing


RemoveStringMetadata

Clears the mob's string metadata, or removes a specific item

Parameters: metadata name | nothing


RemoveStringListMetadata

Clears the mob's string list metadata, or removes a specific item

Parameters: metadata name | nothing


StoreMetadata

Parameters: metadata name and boolean


StoreFlagMetadata

Adds a flag to the mob

Parameters: metadata name and boolean


StoreNumericMetadata

Adds a numneric value to the mob

Parameters: metadata name and double


StoreStringMetadata

Adds a string value to the mob

Parameters: metadata name and String


StoreStringListMetadata

Adds a string list value to the mob

Parameters: metadata name and List<String>


TryFindFlagMetadata

Grabs a specific flag metadata item

Parameters: metadata name
Returns: Boolean or null


TryFindNumericMetadata

Grabs a specific numeric metadata item

Parameters: metadata name
Returns: Double or null


TryFindStringMetadata

Grabs a specific string metadata item

Parameters: metadata name
Returns: String or null


TryFindStringListMetadata

Grabs a specific string list metadata item

Parameters: metadata name
Returns: List<String> or null


mobsistence/mob-api.txt · Last modified: 2015/01/15 10:27 by sylian