BlueMapWrapper

Back to README.md

Collections

Collection

class BlueMapWrapper.Collection

Contains a MarkerCollection and PlayerCollection Object

Used when a simultaneous marker and player request is made

Attributes

Attributes

marker_collection (MarkerCollection)

a MarkerCollection Object

player_collection (PlayerCollection)

a PlayerCollection Object


MarkerCollection

class bluemap_wrapper.MarkerCollection

Contains a list of MarkerSet Objects

This class is also Iterable on its own

Attributes

Methods

Attributes

marker_sets (list[MarkerSet])

A list of MarkerSet Objects

length (int)

The amount of MarkerSet Objects in marker_sets


Methods

from_key(key)

Get a MarkerSet from marker_sets by its name

Parameters


PlayerCollection

class bluemap_wrapper.PlayerCollection

Contains a list of Player Objects

This class is also Iterable on its own

Attributes

Methods

Attributes

players (list[Player])

A list of Player Objects

length (int)

The amount of Player Objects in players


Methods

is_foreign()

Get a list of players who have the foreign attribute (not in the world requested)

Returns:

A list of Player Objects that are foreign

Return Type:

list(Union[Player, None])


not_foreign()

Get a list of players who do not have the foreign attribute (in the world requested)

Returns:

A list of Player Objects that are not foreign

Return Type:

list(Union[Player, None])


from_uuid(uuid)

Get a Player Object by uuid

Parameters


from_name(name)

Get a Player Object from its Name

Parameters