Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
123 lines (94 sloc) 1.23 KB
class Handlers
def keepalive(sock)
{}
end
def login(sock)
{}
end
def handshake(sock)
length = sock.recv(2).unpack("n")[0]
id = sock.recv(length)
{:server_id => id}
end
def chat(sock)
{}
end
def update_time(sock)
{}
end
def flying(sock)
{}
end
def player_position(sock)
{}
end
def player_look(sock)
{}
end
def block_dig(sock)
{}
end
def place(sock)
{}
end
def item_switch(sock)
{}
end
def add_to_inventory(sock)
{}
end
def arm_animation(sock)
{}
end
def name_entity_spawn(sock)
{}
end
def pickup_spawn(sock)
{}
end
def collect_item(sock)
{}
end
def vehicle_spawn(sock)
{}
end
def mob_spawn(sock)
{}
end
def destroy_entity(sock)
{}
end
def entity(sock)
{}
end
def relative_entity_move(sock)
{}
end
def entity_look(sock)
{}
end
def relative_entity_move_and_look(sock)
{}
end
def entity_teleport(sock)
{}
end
def pre_chunk(sock)
{}
end
def map_chunk(sock)
{}
end
def multi_block_change(sock)
{}
end
def block_change(sock)
{}
end
def disconnect(sock)
{}
end
def unknown(sock)
{}
end
end