Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num BinOpPow Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Index Num Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr attr Assign NameStore ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareLt NameLoad NameLoad CompareEq Call AttributeLoad NameLoad attr NameLoad Num body Assign NameStore NameLoad Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad NameLoad body Return NameLoad Assign NameStore ListLoad Num Num Num Assign SubscriptStore NameLoad Index Num BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Num If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num NameLoad If CompareEq NameLoad Num body If CompareGt SubscriptLoad NameLoad Index Num Num body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr If CompareEq NameLoad Num body If CompareGt SubscriptLoad NameLoad Index Num Num body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr If CompareGt SubscriptLoad NameLoad Index Num Num body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body If BoolOpAnd Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Expr Call NameLoad
N/A N/A 
Classes which we expect the user to want to interact with directly, the robot
class handles the direct commands from the user and translates them into
API calls to the server.
 N/A random N/A math client ContextHandler api robotapi_pb2 blocktypes BlockType Robot N/A object N/A N/A Represents the robot itself, commands are sent to the server and the
         result is returned. __init__ N/A N/A self owner_name host port context_handler N/A 26656 None N/A N/A N/A self host host N/A N/A self owner_name owner_name N/A N/A self port port N/A N/A self _context_handler context_handler N/A N/A context_handler N/A N/A N/A self _context_handler N/A ContextHandler host port N/A N/A self _counter N/A N/A random randint 1 N/A 2 16 N/A _action N/A N/A self request N/A N/A N/A Send an action request to the server (via the context handler). N/A response N/A N/A N/A self _context_handler send_request request N/A response N/A _new_action N/A N/A self N/A N/A N/A Construct a new robot api request with the owner name, and counter
        filled in. N/A request N/A N/A robotapi_pb2 RobotRequest N/A N/A request name N/A self owner_name N/A N/A self _counter 1 N/A N/A request key N/A self _counter N/A request N/A move N/A N/A self direction N/A N/A N/A Move the robot one block in the given direction. N/A request N/A N/A self _new_action N/A N/A N/A request action_request move_direction N/A direction value N/A N/A N/A N/A self _action request success N/A turn N/A N/A self direction N/A N/A N/A Turn the robot to face the given direction. N/A request N/A N/A self _new_action N/A N/A N/A request action_request turn_direction N/A direction value N/A N/A N/A N/A self _action request success N/A mine N/A N/A self direction N/A N/A N/A Mine the adjacent block in the given direction and pick up the
        item that results from destrying that block. N/A request N/A N/A self _new_action N/A N/A N/A request action_request mine_direction N/A direction value N/A N/A N/A N/A self _action request success N/A place N/A N/A self direction blocktype N/A N/A N/A Place a block next to the robot in the given direction, with the
        given type. N/A request N/A N/A self _new_action N/A N/A N/A request action_request place_direction N/A direction value N/A N/A N/A N/A request action_request place_material type N/A blocktype value N/A N/A N/A N/A self _action request success N/A get_block_type N/A N/A self direction N/A N/A N/A Find the type of the adjacent block in the given direction. N/A request N/A N/A self _new_action N/A N/A N/A N/A request read_request identify_material direction N/A direction value N/A material_id N/A N/A N/A N/A self _action request material_response type N/A N/A material_id N/A BlockType value_map N/A N/A N/A N/A BlockType value_map N/A material_id N/A N/A N/A logging warn Unrecognized block type: %d material_id N/A None N/A is_block_solid N/A N/A self direction N/A N/A N/A Check if the adjacent block in the given direction is one that the
        robot can walk through or not (returns a boolean). N/A request N/A N/A self _new_action N/A N/A N/A N/A request read_request is_solid direction N/A direction value N/A N/A N/A N/A self _action request boolean_response N/A _locate N/A N/A self entity N/A N/A N/A Return the location of the entity type specified. N/A request N/A N/A self _new_action N/A N/A N/A request read_request locate_entity entity N/A loc_proto N/A N/A N/A N/A N/A self _action request location_response locations N/A 0 N/A N/A N/A Location from_proto N/A loc_proto absolute_location N/A get_location N/A N/A self N/A N/A N/A Returns the Location object for the location coordinates of the
        robot itself. N/A N/A N/A self _locate N/A N/A robotapi_pb2 RobotReadRequest SELF N/A get_owner_location N/A N/A self N/A N/A N/A Returns the Location object for the location coordinates of the
        robot's owner player. N/A N/A N/A self _locate N/A N/A robotapi_pb2 RobotReadRequest OWNER N/A find_type_nearby N/A N/A self blocktype N/A N/A N/A Returns a list of the locations of blocks nearby that match the
        specified block type. N/A request N/A N/A self _new_action N/A N/A N/A N/A request read_request locate_material_nearby type N/A blocktype value N/A loc_proto_list N/A N/A N/A N/A self _action request location_response locations N/A loc_list N/A N/A N/A Location from_proto N/A l absolute_location N/A l loc_proto_list N/A loc_list N/A find_path N/A N/A self target_location N/A N/A N/A Returns the direction to move in, to (hopefully) reach the target
        location (or None if the robot is completely stuck).

        This is a very basic pathfinding algorithm, it looks for which empty
        (non-solid) adjacent block is closest to the target location and
        returns the direction for that block. N/A my_loc N/A N/A self get_location N/A request N/A N/A self _new_action N/A N/A N/A request read_request locate_nonsolid_nearby True N/A loc_proto_list N/A N/A N/A N/A self _action request location_response locations N/A loc_list N/A N/A N/A Location from_proto N/A l absolute_location N/A l loc_proto_list N/A best None N/A targetdist N/A N/A N/A target_location distance N/A loc_list N/A 0 20 N/A loc loc_list N/A N/A newdist N/A N/A target_location distance loc N/A N/A N/A newdist targetdist N/A N/A N/A my_loc distance loc 1 N/A N/A best loc N/A targetdist newdist N/A N/A N/A my_loc direction best N/A get_inventory N/A N/A self N/A N/A N/A Returns a list of pairs (blocktype, count) for all the items in the
        robot's inventory. N/A request N/A N/A self _new_action N/A N/A N/A request read_request get_inventory True N/A inv N/A N/A N/A self _action request inventory_response N/A N/A N/A N/A N/A self _material_to_block mat count N/A N/A mat count N/A zip N/A inv materials N/A inv counts N/A _material_to_block N/A N/A self material N/A N/A N/A N/A N/A material type N/A BlockType value_map N/A N/A N/A N/A BlockType value_map N/A N/A material type N/A None N/A message_owner N/A N/A self msg N/A N/A N/A request N/A N/A self _new_action N/A N/A N/A request action_request chat_message msg N/A N/A N/A request action_request is_public_message False N/A N/A N/A N/A self _action request success N/A message_all N/A N/A self msg N/A N/A N/A request N/A N/A self _new_action N/A N/A N/A request action_request chat_message msg N/A N/A N/A request action_request is_public_message True N/A N/A N/A N/A self _action request success N/A N/A Location N/A object N/A N/A A location in the Minecraft world as a set of 3D coordinates. from_proto N/A N/A cls location_proto N/A N/A N/A Internal use only. Used to convert the wireformat location into a
        more convenient Location object. N/A N/A Location N/A location_proto x N/A location_proto y N/A location_proto z N/A classmethod __init__ N/A N/A self x_coord y_coord z_coord N/A N/A N/A N/A self x_coord x_coord N/A N/A self y_coord y_coord N/A N/A self z_coord z_coord N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A Location(x_coord={}, y_coord={}, z_coord={}) format N/A self x_coord N/A self y_coord N/A self z_coord N/A __eq__ N/A N/A self other N/A N/A N/A N/A other N/A N/A False N/A N/A N/A N/A self x_coord N/A other x_coord N/A N/A self y_coord N/A other y_coord N/A N/A self z_coord N/A other z_coord N/A distance N/A N/A self other N/A N/A N/A Returns the distance between this location and the given other
        location. N/A N/A N/A math sqrt N/A N/A N/A N/A N/A self x_coord N/A other x_coord 2 N/A N/A N/A self y_coord N/A other y_coord 2 N/A N/A N/A self z_coord N/A other z_coord 2 N/A direction N/A N/A self other N/A N/A N/A Find the direction (North, South, East or West) of the other
        location from this one. N/A N/A other None N/A N/A None N/A loc N/A 0 0 0 N/A N/A loc N/A 0 N/A N/A other x_coord N/A self x_coord N/A N/A loc N/A 1 N/A N/A other y_coord N/A self y_coord N/A N/A loc N/A 2 N/A N/A other z_coord N/A self z_coord N/A max_value N/A max N/A list N/A map abs loc N/A max_direction 0 N/A N/A max_value loc N/A N/A max_direction N/A N/A loc index max_value N/A N/A max_direction N/A N/A loc index N/A -1 max_value N/A N/A max_direction 1 N/A N/A N/A N/A loc N/A 1 0 N/A N/A N/A Dir UP N/A N/A Dir DOWN N/A N/A max_direction 0 N/A N/A N/A N/A loc N/A 0 0 N/A N/A N/A Dir EAST N/A N/A Dir WEST N/A N/A N/A loc N/A 2 0 N/A N/A N/A Dir SOUTH N/A N/A Dir NORTH N/A N/A Dir N/A N/A N/A A direction enum.

    This includes absolute compass directions, up, down and directions relative
    to the direction that the robot is facing (forward, backward, left, right)
     __init__ N/A N/A self name value N/A N/A N/A N/A self value value N/A N/A self name name N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A {} ({}) format N/A self name N/A self value N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A __eq__ N/A N/A self other N/A N/A N/A N/A other N/A N/A False N/A N/A N/A self value N/A other value N/A N/A setup_dir N/A N/A N/A N/A N/A Initalize the Dir enum with proto values. N/A value_map N/A N/A N/A attr value N/A N/A N/A N/A robotapi_pb2 WorldLocation __dict__ items N/A N/A N/A N/A N/A attr isupper N/A N/A type value int N/A N/A dir_obj N/A Dir attr value N/A N/A setattr Dir attr dir_obj N/A N/A value_map N/A value dir_obj N/A N/A Dir value_map value_map N/A N/A N/A setup_dir