{"id":21971390,"url":"https://github.com/justblender/gominet","last_synced_at":"2025-07-22T17:32:56.549Z","repository":{"id":57521578,"uuid":"99630002","full_name":"justblender/gominet","owner":"justblender","description":"Minecraft protocol and server library","archived":true,"fork":false,"pushed_at":"2017-08-24T08:48:06.000Z","size":35,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T01:32:30.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justblender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-07T23:41:11.000Z","updated_at":"2023-01-28T14:54:46.000Z","dependencies_parsed_at":"2022-09-13T03:12:19.702Z","dependency_job_id":null,"html_url":"https://github.com/justblender/gominet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justblender%2Fgominet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justblender%2Fgominet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justblender%2Fgominet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justblender%2Fgominet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justblender","download_url":"https://codeload.github.com/justblender/gominet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227149549,"owners_count":17738251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T14:50:22.999Z","updated_at":"2024-11-29T14:50:32.100Z","avatar_url":"https://github.com/justblender.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# GoMiNET\nBasic Minecraft server library written on Golang and based on Taylor Blau's project over at [ttaylorr/minecraft](https://github.com/ttaylorr/minecraft).\n\n## Installation:\n`go get -t github.com/justblender/gominet`\n\n## Creating your own basic server:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"errors\"\n\t\"reflect\"\n\t\"github.com/justblender/gominet\"\n\t\"github.com/justblender/gominet/protocol\"\n\t\"github.com/justblender/gominet/protocol/packet\"\n)\n\nfunc main() {\n\tserver := gominet.NewServer(\"127.0.0.1\", 25565, handlePackets)\n\tserver.ListenAndServe()\n}\n\nfunc handlePackets(conn *protocol.Connection, holder packet.Holder) error {\n\tswitch conn.State {\n\tcase protocol.Handshake:\n\t\thandshake, ok := holder.(packet.Handshake)\n\t\tif !ok {\n\t\t\treturn errors.New(fmt.Sprintf(\"Expected handshake, received: %s\", reflect.TypeOf(holder)))\n\t\t}\n\n\t\tconn.Protocol = uint16(handshake.ProtocolVersion)\n\t\tconn.State = protocol.State(uint8(handshake.NextState))\n\n\tdefault:\n\t\t// Do your own thing here now\n\t\treturn errors.New(\"Not implemented yet\")\n\t}\n\n\treturn nil\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustblender%2Fgominet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustblender%2Fgominet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustblender%2Fgominet/lists"}