spockbot.plugins.helpers.world module¶
Provides a very raw (but very fast) world map for use by plugins. Plugins interested in a more comprehensive world map view can use mcp.mapdata to interpret blocks and their metadata more comprehensively. Planned to provide light level interpretation based on sky light and time of day
-
class
spockbot.plugins.helpers.world.
WorldData
(dimension=0)¶ Bases:
spockbot.plugins.tools.smpmap.Dimension
-
new_dimension
(dimension)¶
-
reset
()¶
-
update_time
(data)¶
-
-
class
spockbot.plugins.helpers.world.
WorldPlugin
(ploader, settings)¶ Bases:
spockbot.plugins.base.PluginBase
-
events
= {'PLAY<Map Chunk Bulk': 'handle_map_chunk_bulk', 'PLAY<Respawn': 'handle_new_dimension', 'PLAY<Update Sign': 'handle_update_sign', 'PLAY<Chunk Data': 'handle_chunk_data', 'PLAY<Multi Block Change': 'handle_multi_block_change', 'PLAY<Block Change': 'handle_block_change', 'PLAY<Update Block Entity': 'handle_update_block_entity', 'PLAY<Time Update': 'handle_time_update', 'PLAY<Join Game': 'handle_new_dimension', 'net_disconnect': 'handle_disconnect'}¶
-
handle_block_change
(name, packet)¶ Block Change - Update a single block
-
handle_chunk_data
(name, packet)¶ Chunk Data - Update World state
-
handle_disconnect
(name, data)¶
-
handle_map_chunk_bulk
(name, packet)¶ Map Chunk Bulk - Update World state
-
handle_multi_block_change
(name, packet)¶ Multi Block Change - Update multiple blocks
-
handle_new_dimension
(name, packet)¶ Join Game/Respawn - New Dimension
-
handle_time_update
(name, packet)¶ Time Update - Update World Time
-
handle_update_block_entity
(event, packet)¶
-
handle_update_sign
(event, packet)¶
-
pl_announce
= ('World',)¶
-
requires
= 'Event'¶
-