From 9ae126c6480c06aeb60e704a2aced63c83a7e83e Mon Sep 17 00:00:00 2001 From: patyhank Date: Tue, 26 Aug 2025 12:06:00 +0800 Subject: [PATCH] fixup codes --- .vscode/settings.json | 3 + go.mod | 9 +- go.sum | 10 +- pkg/auth/auth.go | 14 +-- pkg/bot/client.go | 12 ++- pkg/bot/handler.go | 5 +- pkg/bot/inventory.go | 3 +- pkg/bot/player.go | 7 +- pkg/bot/world.go | 13 ++- pkg/client/client.go | 35 +++++-- pkg/client/connect.go | 7 +- pkg/client/handler.go | 20 ++-- pkg/client/proxy.go | 48 +++++++++ pkg/game/inventory/event.go | 2 +- pkg/game/inventory/inventory.go | 3 +- pkg/game/inventory/manager.go | 2 + pkg/game/player/event.go | 2 +- pkg/game/player/pathfinding.go | 6 +- pkg/game/player/player.go | 98 +++++++++++++++++-- pkg/game/world/entity.go | 8 +- pkg/game/world/world.go | 23 +++-- pkg/protocol/component/banner_patterns.go | 3 +- pkg/protocol/component/bees.go | 3 +- pkg/protocol/component/block_entity_data.go | 3 +- pkg/protocol/component/blocks_attacks.go | 3 +- pkg/protocol/component/break_sound.go | 3 +- pkg/protocol/component/bucket_entity_data.go | 3 +- pkg/protocol/component/can_place_on.go | 5 +- pkg/protocol/component/chicken_variant.go | 3 +- pkg/protocol/component/codecs.go | 2 +- pkg/protocol/component/consumable.go | 3 +- pkg/protocol/component/container_loot.go | 3 +- pkg/protocol/component/custom_data.go | 3 +- pkg/protocol/component/custom_name.go | 3 +- pkg/protocol/component/damage_resistant.go | 3 +- pkg/protocol/component/debug_stick_state.go | 3 +- pkg/protocol/component/entity_data.go | 3 +- pkg/protocol/component/equippable.go | 3 +- pkg/protocol/component/instrument.go | 5 +- .../component/intangible_projectile.go | 3 +- pkg/protocol/component/item_model.go | 3 +- pkg/protocol/component/item_name.go | 3 +- pkg/protocol/component/jukebox_playable.go | 5 +- pkg/protocol/component/lock.go | 3 +- pkg/protocol/component/lodestone_tracker.go | 5 +- pkg/protocol/component/lore.go | 3 +- pkg/protocol/component/map_decorations.go | 3 +- pkg/protocol/component/note_block_sound.go | 3 +- pkg/protocol/component/painting_variant.go | 5 +- pkg/protocol/component/profile.go | 3 +- .../component/provides_banner_patterns.go | 3 +- .../component/provides_trim_material.go | 3 +- pkg/protocol/component/recipes.go | 3 +- pkg/protocol/component/repairable.go | 3 +- pkg/protocol/component/tool.go | 3 +- pkg/protocol/component/tooltip_style.go | 3 +- pkg/protocol/component/trim.go | 5 +- pkg/protocol/component/use_cooldown.go | 3 +- .../component/writable_book_content.go | 3 +- .../component/written_book_content.go | 5 +- pkg/protocol/metadata/codecs.go | 2 +- pkg/protocol/metadata/metadata.go | 2 +- pkg/protocol/metadata/values.go | 7 +- .../configuration/client/clear_dialog.go | 2 +- .../packet/configuration/client/codecs.go | 2 +- .../configuration/client/cookie_request.go | 2 +- .../configuration/client/custom_payload.go | 2 +- .../client/custom_report_details.go | 3 +- .../packet/configuration/client/disconnect.go | 4 +- .../client/finish_configuration.go | 2 +- .../packet/configuration/client/keep_alive.go | 2 +- .../packet/configuration/client/packet.go | 4 +- .../packet/configuration/client/ping.go | 2 +- .../configuration/client/registry_data.go | 4 +- .../packet/configuration/client/reset_chat.go | 2 +- .../configuration/client/resource_pack_pop.go | 3 +- .../client/resource_pack_push.go | 3 +- .../client/select_known_packs.go | 2 +- .../configuration/client/server_links.go | 3 +- .../configuration/client/show_dialog.go | 3 +- .../configuration/client/store_cookie.go | 2 +- .../packet/configuration/client/transfer.go | 2 +- .../client/update_enabled_features.go | 2 +- .../configuration/client/update_tags.go | 3 +- .../server/client_information.go | 3 +- .../packet/configuration/server/codecs.go | 2 +- .../configuration/server/cookie_response.go | 3 +- .../server/custom_click_action.go | 4 +- .../configuration/server/custom_payload.go | 3 +- .../server/finish_configuration.go | 2 +- .../packet/configuration/server/keep_alive.go | 2 +- .../packet/configuration/server/packet.go | 4 +- .../packet/configuration/server/pong.go | 2 +- .../configuration/server/resource_pack.go | 3 +- .../server/select_known_packs.go | 3 +- pkg/protocol/packet/game/client/add_entity.go | 5 +- pkg/protocol/packet/game/client/animate.go | 4 +- .../packet/game/client/award_stats.go | 4 +- .../packet/game/client/block_changed_ack.go | 2 +- .../packet/game/client/block_destruction.go | 4 +- .../packet/game/client/block_entity_data.go | 4 +- .../packet/game/client/block_event.go | 4 +- .../packet/game/client/block_update.go | 4 +- pkg/protocol/packet/game/client/boss_event.go | 5 +- pkg/protocol/packet/game/client/codecs.go | 6 +- .../packet/game/client/command_suggestions.go | 4 +- .../packet/game/client/container_set_data.go | 4 +- .../packet/game/client/container_set_slot.go | 5 +- .../packet/game/client/cookie_request.go | 2 +- pkg/protocol/packet/game/client/cooldown.go | 4 +- .../game/client/custom_chat_completions.go | 4 +- .../packet/game/client/custom_payload.go | 2 +- .../packet/game/client/damage_event.go | 4 +- .../packet/game/client/debug_sample.go | 4 +- .../packet/game/client/delete_chat.go | 4 +- pkg/protocol/packet/game/client/disconnect.go | 2 +- .../packet/game/client/disguised_chat.go | 6 +- .../packet/game/client/entity_event.go | 4 +- pkg/protocol/packet/game/client/explode.go | 4 +- .../packet/game/client/forget_level_chunk.go | 4 +- pkg/protocol/packet/game/client/game_event.go | 2 +- .../game/client/level_chunk_with_light.go | 2 +- .../packet/game/client/level_event.go | 4 +- pkg/protocol/packet/game/client/login.go | 4 +- pkg/protocol/packet/game/client/map_data.go | 4 +- .../packet/game/client/move_entity_pos_rot.go | 2 +- .../game/client/move_minecart_along_track.go | 2 +- .../packet/game/client/open_screen.go | 2 +- .../packet/game/client/open_sign_editor.go | 2 +- pkg/protocol/packet/game/client/packet.go | 4 +- .../packet/game/client/player_abilities.go | 2 +- .../packet/game/client/player_combat_kill.go | 2 +- .../packet/game/client/player_info_update.go | 9 +- .../packet/game/client/player_position.go | 2 +- .../packet/game/client/recipe_book_add.go | 3 +- .../packet/game/client/resource_pack_push.go | 3 +- pkg/protocol/packet/game/client/respawn.go | 2 +- .../packet/game/client/rotate_head.go | 2 +- .../packet/game/client/server_data.go | 2 +- .../packet/game/client/server_links.go | 2 +- .../packet/game/client/set_action_bar_text.go | 2 +- .../game/client/set_default_spawn_position.go | 2 +- .../packet/game/client/set_equipment.go | 3 +- .../packet/game/client/set_objective.go | 2 +- .../packet/game/client/set_player_team.go | 2 +- pkg/protocol/packet/game/client/set_score.go | 4 +- .../packet/game/client/set_subtitle_text.go | 2 +- .../packet/game/client/set_title_text.go | 2 +- .../packet/game/client/show_dialog.go | 2 +- .../packet/game/client/sound_entity.go | 3 +- pkg/protocol/packet/game/client/stop_sound.go | 2 +- .../packet/game/client/system_chat.go | 2 +- pkg/protocol/packet/game/client/tab_list.go | 2 +- pkg/protocol/packet/game/client/tag_query.go | 2 +- .../game/client/test_instance_block_status.go | 2 +- .../packet/game/client/update_advancements.go | 3 +- .../packet/game/client/update_light.go | 2 +- .../packet/game/client/update_recipes.go | 3 +- .../game/server/accept_teleportation.go | 2 +- .../game/server/block_entity_tag_query.go | 4 +- .../game/server/bundle_item_selected.go | 2 +- .../packet/game/server/change_difficulty.go | 2 +- .../packet/game/server/change_game_mode.go | 2 +- pkg/protocol/packet/game/server/chat.go | 4 +- pkg/protocol/packet/game/server/chat_ack.go | 2 +- .../packet/game/server/chat_command.go | 2 +- .../packet/game/server/chat_command_signed.go | 4 +- .../packet/game/server/chat_session_update.go | 5 +- .../game/server/chunk_batch_received.go | 2 +- .../packet/game/server/client_command.go | 2 +- .../packet/game/server/client_information.go | 2 +- .../packet/game/server/client_tick_end.go | 2 +- pkg/protocol/packet/game/server/codecs.go | 2 +- .../packet/game/server/command_suggestion.go | 2 +- .../game/server/configuration_acknowledged.go | 2 +- .../game/server/container_button_click.go | 2 +- .../packet/game/server/container_click.go | 3 +- .../packet/game/server/container_close.go | 2 +- .../server/container_slot_state_changed.go | 2 +- .../packet/game/server/cookie_response.go | 2 +- .../packet/game/server/custom_click_action.go | 4 +- .../packet/game/server/custom_payload.go | 2 +- .../game/server/debug_sample_subscription.go | 2 +- pkg/protocol/packet/game/server/edit_book.go | 2 +- .../packet/game/server/entity_tag_query.go | 2 +- pkg/protocol/packet/game/server/interact.go | 2 +- .../packet/game/server/jigsaw_generate.go | 4 +- pkg/protocol/packet/game/server/keep_alive.go | 2 +- .../packet/game/server/lock_difficulty.go | 2 +- .../packet/game/server/move_player_pos.go | 2 +- .../packet/game/server/move_player_pos_rot.go | 2 +- .../packet/game/server/move_player_rot.go | 2 +- .../game/server/move_player_status_only.go | 2 +- .../packet/game/server/move_vehicle.go | 2 +- pkg/protocol/packet/game/server/packet.go | 4 +- .../packet/game/server/paddle_boat.go | 2 +- .../game/server/pick_item_from_block.go | 4 +- .../game/server/pick_item_from_entity.go | 2 +- .../packet/game/server/ping_request.go | 2 +- .../packet/game/server/place_recipe.go | 2 +- .../packet/game/server/player_abilities.go | 2 +- .../packet/game/server/player_action.go | 4 +- .../packet/game/server/player_command.go | 2 +- .../packet/game/server/player_input.go | 2 +- .../packet/game/server/player_loaded.go | 2 +- pkg/protocol/packet/game/server/pong.go | 2 +- .../server/recipe_book_change_settings.go | 2 +- .../game/server/recipe_book_seen_recipe.go | 2 +- .../packet/game/server/rename_item.go | 2 +- .../packet/game/server/resource_pack.go | 3 +- .../packet/game/server/seen_advancements.go | 2 +- .../packet/game/server/select_trade.go | 2 +- pkg/protocol/packet/game/server/set_beacon.go | 2 +- .../packet/game/server/set_carried_item.go | 2 +- .../packet/game/server/set_command_block.go | 4 +- .../game/server/set_command_minecart.go | 2 +- .../game/server/set_creative_mode_slot.go | 3 +- .../packet/game/server/set_jigsaw_block.go | 4 +- .../packet/game/server/set_structure_block.go | 4 +- .../packet/game/server/set_test_block.go | 4 +- .../packet/game/server/sign_update.go | 4 +- pkg/protocol/packet/game/server/swing.go | 2 +- .../packet/game/server/teleport_to_entity.go | 3 +- .../game/server/test_instance_block_action.go | 6 +- pkg/protocol/packet/game/server/use_item.go | 2 +- .../packet/game/server/use_item_on.go | 4 +- pkg/protocol/packet/login/client/codecs.go | 2 +- .../packet/login/client/cookie_request.go | 2 +- .../packet/login/client/custom_query.go | 2 +- pkg/protocol/packet/login/client/hello.go | 2 +- .../packet/login/client/login_compression.go | 2 +- .../packet/login/client/login_disconnect.go | 4 +- .../packet/login/client/login_finished.go | 5 +- pkg/protocol/packet/login/client/packet.go | 4 +- pkg/protocol/packet/login/server/codecs.go | 2 +- .../packet/login/server/cookie_response.go | 2 +- .../login/server/custom_query_answer.go | 2 +- pkg/protocol/packet/login/server/hello.go | 3 +- pkg/protocol/packet/login/server/key.go | 2 +- .../packet/login/server/login_acknowledged.go | 2 +- pkg/protocol/packet/login/server/packet.go | 4 +- pkg/protocol/particle/codecs.go | 2 +- pkg/protocol/particle/particle.go | 2 +- pkg/protocol/particle/particles.go | 3 +- pkg/protocol/slot/codecs.go | 2 +- pkg/protocol/slot/component.go | 2 +- pkg/protocol/slot/display/recipe/codecs.go | 2 +- .../slot/display/recipe/recipe_display.go | 3 +- pkg/protocol/slot/display/slot/codecs.go | 2 +- .../slot/display/slot/slot_display.go | 3 +- pkg/protocol/slot/item_stack.go | 4 +- pkg/protocol/slot/trade_item.go | 2 +- 252 files changed, 627 insertions(+), 369 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 pkg/client/proxy.go diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5480842 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "kiroAgent.configureMCP": "Disabled" +} \ No newline at end of file diff --git a/go.mod b/go.mod index 7ab420c..d8dff5a 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,13 @@ go 1.24.0 toolchain go1.24.4 require ( - github.com/Tnze/go-mc v1.20.3-0.20241224032005-539b4a3a7f03 github.com/google/uuid v1.6.0 golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 golang.org/x/sync v0.16.0 ) -require github.com/go-gl/mathgl v1.2.0 - -replace github.com/Tnze/go-mc v1.20.3-0.20241224032005-539b4a3a7f03 => git.konjactw.dev/falloutBot/go-mc v0.0.0-20250823092154-f0bb92bdb98a +require ( + git.konjactw.dev/falloutBot/go-mc v0.0.0-20250826135316-7b60edc24881 + github.com/go-gl/mathgl v1.2.0 + golang.org/x/net v0.43.0 +) diff --git a/go.sum b/go.sum index 646ef09..ac80a2e 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,14 @@ -git.konjactw.dev/falloutBot/go-mc v0.0.0-20250823092154-f0bb92bdb98a h1:M/FJZNEoOLsf/x5mscvCCYLfkOdSUYZvbGwHqPQOB/U= -git.konjactw.dev/falloutBot/go-mc v0.0.0-20250823092154-f0bb92bdb98a/go.mod h1:e3pBU8tqRfYDHrhtZRtyfGdYijA86b1fF3XgnEDSgHk= -git.konjactw.dev/patyhank/go-mc v1.20.3-0.20250619063151-133e3fab4ac2 h1:KiA1OsQQGjrKxev45URJPwvyuVwen9Bb4TzjEg/ojz8= -git.konjactw.dev/patyhank/go-mc v1.20.3-0.20250619063151-133e3fab4ac2/go.mod h1:e3pBU8tqRfYDHrhtZRtyfGdYijA86b1fF3XgnEDSgHk= +git.konjactw.dev/falloutBot/go-mc v0.0.0-20250826114052-b9763dbf8c9f h1:U7Ay0O+6w/3shRUCilTz5idjMJ9pfHBg6bLTUKwqbU0= +git.konjactw.dev/falloutBot/go-mc v0.0.0-20250826114052-b9763dbf8c9f/go.mod h1:/KAQOP2x0pA8xEQuNkQa4d1TMKoyfLvUKmFqUJ8keDc= +git.konjactw.dev/falloutBot/go-mc v0.0.0-20250826135316-7b60edc24881 h1:4kwONJ/u4HvLS1zTfid+NXc+3MkAceiLlwLwAzCoXh4= +git.konjactw.dev/falloutBot/go-mc v0.0.0-20250826135316-7b60edc24881/go.mod h1:/KAQOP2x0pA8xEQuNkQa4d1TMKoyfLvUKmFqUJ8keDc= github.com/go-gl/mathgl v1.2.0 h1:v2eOj/y1B2afDxF6URV1qCYmo1KW08lAMtTbOn3KXCY= github.com/go-gl/mathgl v1.2.0/go.mod h1:pf9+b5J3LFP7iZ4XXaVzZrCle0Q/vNpB/vDe5+3ulRE= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476 h1:bsqhLWFR6G6xiQcb+JoGqdKdRU6WzPWmK8E0jxTjzo4= golang.org/x/exp v0.0.0-20250606033433-dcc06ee1d476/go.mod h1:3//PLf8L/X+8b4vuAfHzxeRUl04Adcb341+IGKfnqS8= +golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE= +golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg= golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw= golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= diff --git a/pkg/auth/auth.go b/pkg/auth/auth.go index 043eacf..63460cb 100644 --- a/pkg/auth/auth.go +++ b/pkg/auth/auth.go @@ -19,14 +19,16 @@ import ( "strings" "time" + "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net" + "git.konjactw.dev/falloutBot/go-mc/net/CFB8" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/login/client" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/login/server" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net" - "github.com/Tnze/go-mc/net/CFB8" - pk "github.com/Tnze/go-mc/net/packet" - "github.com/google/uuid" ) var ( diff --git a/pkg/bot/client.go b/pkg/bot/client.go index dfcb7cc..e87ea2b 100644 --- a/pkg/bot/client.go +++ b/pkg/bot/client.go @@ -25,6 +25,14 @@ type ClientOptions struct { AuthProvider auth.Provider } -type ConnectOptions struct { - FakeHost string +type ProxyConfig struct { + Type string `json:"type" toml:"type"` + Host string `json:"host" toml:"host"` + Username string `json:"username" toml:"username"` + Password string `json:"password" toml:"password"` +} + +type ConnectOptions struct { + FakeHost string `json:"fake_host,omitempty" toml:"fake_host,omitempty"` + Proxy *ProxyConfig `json:"proxy,omitempty" toml:"proxy,omitempty"` } diff --git a/pkg/bot/handler.go b/pkg/bot/handler.go index c1d5c02..74b7612 100644 --- a/pkg/bot/handler.go +++ b/pkg/bot/handler.go @@ -3,12 +3,15 @@ package bot import ( "context" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type PacketHandler interface { AddPacketHandler(id packetid.ClientboundPacketID, handler func(ctx context.Context, p client.ClientboundPacket)) + AddRawPacketHandler(id packetid.ClientboundPacketID, handler func(ctx context.Context, p packet.Packet)) AddGenericPacketHandler(handler func(ctx context.Context, p client.ClientboundPacket)) HandlePacket(ctx context.Context, p client.ClientboundPacket) } diff --git a/pkg/bot/inventory.go b/pkg/bot/inventory.go index 6e46cf6..99fc2c1 100644 --- a/pkg/bot/inventory.go +++ b/pkg/bot/inventory.go @@ -1,8 +1,9 @@ package bot import ( + "git.konjactw.dev/falloutBot/go-mc/level/item" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/level/item" ) type Container interface { diff --git a/pkg/bot/player.go b/pkg/bot/player.go index 05eb34f..3d49296 100644 --- a/pkg/bot/player.go +++ b/pkg/bot/player.go @@ -1,8 +1,9 @@ package bot import ( - "git.konjactw.dev/patyhank/minego/pkg/protocol" "github.com/go-gl/mathgl/mgl64" + + "git.konjactw.dev/patyhank/minego/pkg/protocol" ) type Player interface { @@ -13,6 +14,7 @@ type Player interface { FlyTo(pos mgl64.Vec3) error WalkTo(pos mgl64.Vec3) error LookAt(vec3 mgl64.Vec3) error + UpdateLocation() BreakBlock(pos protocol.Position) error PlaceBlock(pos protocol.Position) error @@ -22,4 +24,7 @@ type Player interface { UseItem(hand int8) error OpenMenu(command string) (Container, error) + Command(command string) error + Chat(message string) error + CheckServer() } diff --git a/pkg/bot/world.go b/pkg/bot/world.go index 1e8a87f..04ac946 100644 --- a/pkg/bot/world.go +++ b/pkg/bot/world.go @@ -1,13 +1,15 @@ package bot import ( + "github.com/go-gl/mathgl/mgl64" + "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/entity" + "git.konjactw.dev/falloutBot/go-mc/level/block" + "git.konjactw.dev/patyhank/minego/pkg/protocol" "git.konjactw.dev/patyhank/minego/pkg/protocol/metadata" "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/entity" - "github.com/Tnze/go-mc/level/block" - "github.com/go-gl/mathgl/mgl64" - "github.com/google/uuid" ) type World interface { @@ -32,4 +34,7 @@ type Entity interface { Metadata() map[uint8]metadata.Metadata Equipment() map[int8]slot.Slot + + SetPosition(pos mgl64.Vec3) + SetRotation(rot mgl64.Vec2) } diff --git a/pkg/client/client.go b/pkg/client/client.go index 879ef48..4475e70 100644 --- a/pkg/client/client.go +++ b/pkg/client/client.go @@ -7,6 +7,12 @@ import ( "net" "strconv" + "golang.org/x/sync/errgroup" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + mcnet "git.konjactw.dev/falloutBot/go-mc/net" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/auth" "git.konjactw.dev/patyhank/minego/pkg/bot" "git.konjactw.dev/patyhank/minego/pkg/game/inventory" @@ -14,15 +20,11 @@ import ( "git.konjactw.dev/patyhank/minego/pkg/game/world" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - "github.com/Tnze/go-mc/data/packetid" - mcnet "github.com/Tnze/go-mc/net" - pk "github.com/Tnze/go-mc/net/packet" - "golang.org/x/sync/errgroup" ) type botClient struct { conn *mcnet.Conn - packetHandler bot.PacketHandler + packetHandler *packetHandler eventHandler bot.EventHandler connected bool authProvider auth.Provider @@ -91,7 +93,13 @@ func (b *botClient) Connect(ctx context.Context, addr string, options *bot.Conne } } - dialer := &mcnet.DefaultDialer + var dialer mcnet.MCDialer = &mcnet.DefaultDialer + if options != nil && options.Proxy != nil { + dialer, err = socks5(options.Proxy) + if err != nil { + return err + } + } b.conn, err = dialer.DialMCContext(ctx, addr) if err != nil { return err @@ -156,6 +164,15 @@ func (b *botClient) handlePackets(ctx context.Context) error { } continue } + + hs, ok := b.packetHandler.rawMap[pktID] + for _, h := range hs { + group.Go(func() error { + h(ctx, p) + return nil + }) + } + creator, ok := client.ClientboundPackets[pktID] if !ok { continue @@ -163,12 +180,10 @@ func (b *botClient) handlePackets(ctx context.Context) error { pkt := creator() _, err := pkt.ReadFrom(bytes.NewReader(p.Data)) if err != nil { + // fmt.Printf("Decoding: 0x%x %s %s\n", p.ID, pktID.String(), err.Error()) continue } - group.Go(func() error { - b.packetHandler.HandlePacket(ctx, pkt) - return nil - }) + b.packetHandler.HandlePacket(ctx, pkt) } } } diff --git a/pkg/client/connect.go b/pkg/client/connect.go index f9914dd..4e08d53 100644 --- a/pkg/client/connect.go +++ b/pkg/client/connect.go @@ -5,10 +5,11 @@ import ( "errors" "time" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/auth" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" ) func (b *botClient) login() error { diff --git a/pkg/client/handler.go b/pkg/client/handler.go index fe3df01..d96e952 100644 --- a/pkg/client/handler.go +++ b/pkg/client/handler.go @@ -3,20 +3,23 @@ package client import ( "context" - "git.konjactw.dev/patyhank/minego/pkg/bot" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) -func newPacketHandler() bot.PacketHandler { +func newPacketHandler() *packetHandler { return &packetHandler{ handlerMap: make(map[packetid.ClientboundPacketID][]func(ctx context.Context, p client.ClientboundPacket)), + rawMap: make(map[packetid.ClientboundPacketID][]func(ctx context.Context, p pk.Packet)), } } type packetHandler struct { handlerMap map[packetid.ClientboundPacketID][]func(ctx context.Context, p client.ClientboundPacket) genericMap []func(ctx context.Context, p client.ClientboundPacket) + rawMap map[packetid.ClientboundPacketID][]func(ctx context.Context, p pk.Packet) } func (ph *packetHandler) AddPacketHandler(id packetid.ClientboundPacketID, handler func(ctx context.Context, p client.ClientboundPacket)) { @@ -29,13 +32,16 @@ func (ph *packetHandler) AddGenericPacketHandler(handler func(ctx context.Contex ph.genericMap = append(ph.genericMap, handler) } +func (ph *packetHandler) AddRawPacketHandler(id packetid.ClientboundPacketID, handler func(ctx context.Context, p pk.Packet)) { + ph.rawMap[id] = append(ph.rawMap[id], handler) +} + func (ph *packetHandler) HandlePacket(ctx context.Context, p client.ClientboundPacket) { f := ph.handlerMap[p.PacketID()] - if f != nil { - for _, handler := range f { - handler(ctx, p) - } + for _, handler := range f { + handler(ctx, p) } + for _, handler := range ph.genericMap { handler(ctx, p) } diff --git a/pkg/client/proxy.go b/pkg/client/proxy.go new file mode 100644 index 0000000..61dffaa --- /dev/null +++ b/pkg/client/proxy.go @@ -0,0 +1,48 @@ +package client + +import ( + "context" + "fmt" + + "golang.org/x/net/proxy" + + mcnet "git.konjactw.dev/falloutBot/go-mc/net" + + "git.konjactw.dev/patyhank/minego/pkg/bot" +) + +// createSOCKS5Dialer 建立 SOCKS5 dialer +func socks5(proxyConfig *bot.ProxyConfig) (mcnet.MCDialer, error) { + var auth *proxy.Auth + if proxyConfig.Username != "" || proxyConfig.Password != "" { + auth = &proxy.Auth{ + User: proxyConfig.Username, + Password: proxyConfig.Password, + } + } + + dialer, err := proxy.SOCKS5("tcp", proxyConfig.Host, auth, proxy.Direct) + if err != nil { + return nil, fmt.Errorf("failed to create SOCKS5 proxy dialer: %w", err) + } + + return &socks5MCDialer{ + dialer: dialer, + }, nil +} + +// socks5MCDialer 實作 mcnet.MCDialer 介面,使用 SOCKS5 proxy +type socks5MCDialer struct { + dialer proxy.Dialer +} + +func (d *socks5MCDialer) DialMCContext(ctx context.Context, address string) (*mcnet.Conn, error) { + // 使用 SOCKS5 proxy 建立連線 + conn, err := d.dialer.Dial("tcp", address) + if err != nil { + return nil, fmt.Errorf("failed to dial through SOCKS5 proxy: %w", err) + } + + // 將 net.Conn 包裝成 mcnet.Conn + return mcnet.WrapConn(conn), nil +} diff --git a/pkg/game/inventory/event.go b/pkg/game/inventory/event.go index 7fc7d74..8dd95e8 100644 --- a/pkg/game/inventory/event.go +++ b/pkg/game/inventory/event.go @@ -1,6 +1,6 @@ package inventory -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" type ContainerOpenEvent struct { WindowID int32 diff --git a/pkg/game/inventory/inventory.go b/pkg/game/inventory/inventory.go index 5d2b5a0..56cea71 100644 --- a/pkg/game/inventory/inventory.go +++ b/pkg/game/inventory/inventory.go @@ -3,10 +3,11 @@ package inventory import ( "context" + "git.konjactw.dev/falloutBot/go-mc/level/item" + "git.konjactw.dev/patyhank/minego/pkg/bot" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/level/item" ) // Container 代表一個容器 diff --git a/pkg/game/inventory/manager.go b/pkg/game/inventory/manager.go index f7b97b6..f703687 100644 --- a/pkg/game/inventory/manager.go +++ b/pkg/game/inventory/manager.go @@ -80,8 +80,10 @@ func (m *Manager) CurrentContainerID() int32 { func (m *Manager) Close() { if m.currentContainerID != -1 { _ = m.c.WritePacket(context.Background(), &server.ContainerClose{WindowID: m.currentContainerID}) + m.currentContainerID = -1 } else { _ = m.c.WritePacket(context.Background(), &server.ContainerClose{WindowID: 0}) + m.currentContainerID = -1 } } diff --git a/pkg/game/player/event.go b/pkg/game/player/event.go index 6d7f303..19c8914 100644 --- a/pkg/game/player/event.go +++ b/pkg/game/player/event.go @@ -1,6 +1,6 @@ package player -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" type MessageEvent struct { Message chat.Message diff --git a/pkg/game/player/pathfinding.go b/pkg/game/player/pathfinding.go index 8d3a5f7..f9594e6 100644 --- a/pkg/game/player/pathfinding.go +++ b/pkg/game/player/pathfinding.go @@ -4,10 +4,12 @@ import ( "container/heap" "math" + "github.com/go-gl/mathgl/mgl64" + + "git.konjactw.dev/falloutBot/go-mc/level/block" + "git.konjactw.dev/patyhank/minego/pkg/bot" "git.konjactw.dev/patyhank/minego/pkg/protocol" - "github.com/Tnze/go-mc/level/block" - "github.com/go-gl/mathgl/mgl64" ) // Node 表示 A* 演算法中的節點 diff --git a/pkg/game/player/player.go b/pkg/game/player/player.go index f2ddf31..1a17d16 100644 --- a/pkg/game/player/player.go +++ b/pkg/game/player/player.go @@ -6,13 +6,15 @@ import ( "math" "time" + "github.com/go-gl/mathgl/mgl64" + + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/bot" "git.konjactw.dev/patyhank/minego/pkg/game/world" "git.konjactw.dev/patyhank/minego/pkg/protocol" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - pk "github.com/Tnze/go-mc/net/packet" - "github.com/go-gl/mathgl/mgl64" ) type Player struct { @@ -27,8 +29,9 @@ type Player struct { // New 創建新的 Player 實例 func New(c bot.Client) *Player { pl := &Player{ - c: c, - entity: &world.Entity{}, + c: c, + entity: &world.Entity{}, + stateID: 1, } c.PacketHandler().AddGenericPacketHandler(func(ctx context.Context, pk client.ClientboundPacket) { @@ -36,7 +39,7 @@ func New(c bot.Client) *Player { }) bot.AddHandler(c, func(ctx context.Context, p *client.KeepAlive) { - c.WritePacket(ctx, &server.KeepAlive{ + _ = c.WritePacket(ctx, &server.KeepAlive{ ID: p.ID, }) }) @@ -49,10 +52,51 @@ func New(c bot.Client) *Player { } }) bot.AddHandler(c, func(ctx context.Context, p *client.PlayerPosition) { - pl.entity.SetPosition(mgl64.Vec3{p.X, p.Y, p.Z}) - pl.entity.SetRotation(mgl64.Vec2{float64(p.XRot), float64(p.YRot)}) + fmt.Println(p) + position := pl.entity.Position() + if p.Flags&0x01 != 0 { + position[0] += p.X + } else { + position[0] = p.X + } + + if p.Flags&0x02 != 0 { + position[1] += p.Y + } else { + position[1] = p.Y + } + + if p.Flags&0x04 != 0 { + position[2] += p.Z + } else { + position[2] = p.Z + } + + pl.entity.SetPosition(position) + + rot := pl.entity.Rotation() + if p.Flags&0x08 != 0 { + rot[0] += float64(p.XRot) + } else { + rot[0] = float64(p.XRot) + } + + if p.Flags&0x10 != 0 { + rot[1] += float64(p.YRot) + } else { + rot[1] = float64(p.YRot) + } + pl.entity.SetRotation(rot) c.WritePacket(context.Background(), &server.AcceptTeleportation{TeleportID: p.ID}) + c.WritePacket(context.Background(), &server.MovePlayerPosRot{ + X: p.X, + FeetY: p.Y, + Z: p.Z, + Yaw: p.XRot, + Pitch: p.YRot, + Flags: 0x00, + }) }) bot.AddHandler(c, func(ctx context.Context, p *client.PlayerRotation) { pl.entity.SetRotation(mgl64.Vec2{float64(p.Yaw), float64(p.Pitch)}) @@ -173,6 +217,17 @@ func (p *Player) WalkTo(pos mgl64.Vec3) error { return nil } +func (p *Player) UpdateLocation() { + _ = p.c.WritePacket(context.Background(), &server.MovePlayerPosRot{ + X: p.entity.Position().X(), + FeetY: p.entity.Position().Y(), + Z: p.entity.Position().Z(), + Yaw: float32(p.entity.Rotation().X()), + Pitch: float32(p.entity.Rotation().Y()), + Flags: 0x00, + }) +} + // LookAt 看向指定位置 func (p *Player) LookAt(target mgl64.Vec3) error { if p.c == nil { @@ -191,6 +246,8 @@ func (p *Player) LookAt(target mgl64.Vec3) error { yaw := float32(math.Atan2(-direction.X(), direction.Z()) * 180 / math.Pi) pitch := float32(math.Asin(-direction.Y()) * 180 / math.Pi) + p.entity.SetRotation(mgl64.Vec2{float64(yaw), float64(pitch)}) + return p.c.WritePacket(context.Background(), &server.MovePlayerRot{ Yaw: yaw, Pitch: pitch, @@ -290,13 +347,24 @@ func (p *Player) OpenContainer(pos protocol.Position) (bot.Container, error) { return nil, fmt.Errorf("failed to open container: %w", err) } - ctx, cancelFunc := context.WithTimeout(context.Background(), time.Second*10) + ctx, cancelFunc := context.WithTimeout(context.Background(), time.Second*5) defer cancelFunc() - for p.c.Inventory().Container() == nil && ctx.Err() == nil { + for ctx.Err() == nil && p.c.Inventory().CurrentContainerID() <= 0 { time.Sleep(time.Millisecond * 50) } + for ctx.Err() == nil && p.c.Inventory().Container().SlotCount() == 0 { + time.Sleep(time.Millisecond * 50) + } + + if ctx.Err() != nil { + return nil, fmt.Errorf("failed to open container: %w", ctx.Err()) + } + if p.c.Inventory().CurrentContainerID() <= 0 { + return nil, fmt.Errorf("failed to open container: no container opened") + } + return p.c.Inventory().Container(), nil } @@ -329,3 +397,15 @@ func (p *Player) OpenMenu(command string) (bot.Container, error) { // 返回客戶端的容器處理器 return p.c.Inventory().Container(), nil } + +func (p *Player) Command(msg string) error { + return p.c.WritePacket(context.Background(), &server.ChatCommand{ + Command: msg, + }) +} + +func (p *Player) Chat(msg string) error { + return p.c.WritePacket(context.Background(), &server.Chat{ + Message: msg, + }) +} diff --git a/pkg/game/world/entity.go b/pkg/game/world/entity.go index bd0d5d9..d1642fd 100644 --- a/pkg/game/world/entity.go +++ b/pkg/game/world/entity.go @@ -1,11 +1,13 @@ package world import ( - "git.konjactw.dev/patyhank/minego/pkg/protocol/metadata" - "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/entity" "github.com/go-gl/mathgl/mgl64" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/entity" + + "git.konjactw.dev/patyhank/minego/pkg/protocol/metadata" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" ) type Entity struct { diff --git a/pkg/game/world/world.go b/pkg/game/world/world.go index ac72f5c..b209a95 100644 --- a/pkg/game/world/world.go +++ b/pkg/game/world/world.go @@ -6,17 +6,19 @@ import ( "errors" "sync" + "github.com/go-gl/mathgl/mgl64" + "golang.org/x/exp/constraints" + + "git.konjactw.dev/falloutBot/go-mc/data/entity" + "git.konjactw.dev/falloutBot/go-mc/level" + "git.konjactw.dev/falloutBot/go-mc/level/block" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/bot" "git.konjactw.dev/patyhank/minego/pkg/protocol" "git.konjactw.dev/patyhank/minego/pkg/protocol/metadata" cp "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/entity" - "github.com/Tnze/go-mc/level" - "github.com/Tnze/go-mc/level/block" - pk "github.com/Tnze/go-mc/net/packet" - "github.com/go-gl/mathgl/mgl64" - "golang.org/x/exp/constraints" ) type World struct { @@ -42,6 +44,7 @@ func NewWorld(c bot.Client) *World { w.columns[p.Pos] = p.Data }) + bot.AddHandler(c, func(ctx context.Context, p *cp.ForgetLevelChunk) { w.chunkLock.Lock() defer w.chunkLock.Unlock() @@ -147,7 +150,8 @@ func (w *World) GetBlock(pos protocol.Position) (block.Block, error) { blockX := pos[0] & 15 blockZ := pos[2] & 15 - blockIdx := (pos[1] << 8) | (blockZ << 4) | blockX + blockY := pos[1] & 15 + blockIdx := (blockY << 8) | (blockZ << 4) | blockX sectionY := pos[1] >> 4 if sectionY < 0 || int(sectionY) >= len(chunk.Sections) { return nil, errors.New("invalid section Y coordinate") @@ -186,9 +190,6 @@ func (w *World) SetBlock(pos protocol.Position, blk block.Block) error { } func (w *World) GetNearbyBlocks(pos protocol.Position, radius int32) ([]block.Block, error) { - w.chunkLock.Lock() - defer w.chunkLock.Unlock() - var blocks []block.Block for dx := -radius; dx <= radius; dx++ { @@ -207,8 +208,6 @@ func (w *World) GetNearbyBlocks(pos protocol.Position, radius int32) ([]block.Bl } func (w *World) FindNearbyBlock(pos protocol.Position, radius int32, blk block.Block) (protocol.Position, error) { - w.chunkLock.Lock() - defer w.chunkLock.Unlock() visited := make(map[protocol.Position]bool) queue := list.New() start := pos diff --git a/pkg/protocol/component/banner_patterns.go b/pkg/protocol/component/banner_patterns.go index 35698d5..834ba7f 100644 --- a/pkg/protocol/component/banner_patterns.go +++ b/pkg/protocol/component/banner_patterns.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/bees.go b/pkg/protocol/component/bees.go index 99796b0..5d73b46 100644 --- a/pkg/protocol/component/bees.go +++ b/pkg/protocol/component/bees.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/block_entity_data.go b/pkg/protocol/component/block_entity_data.go index f0a3bba..2c5ed88 100644 --- a/pkg/protocol/component/block_entity_data.go +++ b/pkg/protocol/component/block_entity_data.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/blocks_attacks.go b/pkg/protocol/component/blocks_attacks.go index 98632b4..79b0ed3 100644 --- a/pkg/protocol/component/blocks_attacks.go +++ b/pkg/protocol/component/blocks_attacks.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/break_sound.go b/pkg/protocol/component/break_sound.go index a507a03..37c0ef7 100644 --- a/pkg/protocol/component/break_sound.go +++ b/pkg/protocol/component/break_sound.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/bucket_entity_data.go b/pkg/protocol/component/bucket_entity_data.go index 9ead694..29cf672 100644 --- a/pkg/protocol/component/bucket_entity_data.go +++ b/pkg/protocol/component/bucket_entity_data.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/can_place_on.go b/pkg/protocol/component/can_place_on.go index e04729c..70eb5f2 100644 --- a/pkg/protocol/component/can_place_on.go +++ b/pkg/protocol/component/can_place_on.go @@ -3,9 +3,10 @@ package component import ( "io" + "git.konjactw.dev/falloutBot/go-mc/nbt" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/chicken_variant.go b/pkg/protocol/component/chicken_variant.go index fb49be2..c981564 100644 --- a/pkg/protocol/component/chicken_variant.go +++ b/pkg/protocol/component/chicken_variant.go @@ -3,8 +3,9 @@ package component import ( "io" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) type ChickenVariant struct { diff --git a/pkg/protocol/component/codecs.go b/pkg/protocol/component/codecs.go index 71a3ea6..b7cf048 100644 --- a/pkg/protocol/component/codecs.go +++ b/pkg/protocol/component/codecs.go @@ -6,7 +6,7 @@ import ( "errors" "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *AttributeModifiers) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/component/consumable.go b/pkg/protocol/component/consumable.go index b1fecd5..2406dc9 100644 --- a/pkg/protocol/component/consumable.go +++ b/pkg/protocol/component/consumable.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/container_loot.go b/pkg/protocol/component/container_loot.go index 150e61e..033e39c 100644 --- a/pkg/protocol/component/container_loot.go +++ b/pkg/protocol/component/container_loot.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/custom_data.go b/pkg/protocol/component/custom_data.go index 44a8f60..c74fcfc 100644 --- a/pkg/protocol/component/custom_data.go +++ b/pkg/protocol/component/custom_data.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/custom_name.go b/pkg/protocol/component/custom_name.go index 5580e44..8fcabbf 100644 --- a/pkg/protocol/component/custom_name.go +++ b/pkg/protocol/component/custom_name.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/component/damage_resistant.go b/pkg/protocol/component/damage_resistant.go index b4275d6..d178245 100644 --- a/pkg/protocol/component/damage_resistant.go +++ b/pkg/protocol/component/damage_resistant.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/debug_stick_state.go b/pkg/protocol/component/debug_stick_state.go index 3494a34..b72e275 100644 --- a/pkg/protocol/component/debug_stick_state.go +++ b/pkg/protocol/component/debug_stick_state.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/entity_data.go b/pkg/protocol/component/entity_data.go index 2f08239..b509ce9 100644 --- a/pkg/protocol/component/entity_data.go +++ b/pkg/protocol/component/entity_data.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/equippable.go b/pkg/protocol/component/equippable.go index a2ddf0b..7643c58 100644 --- a/pkg/protocol/component/equippable.go +++ b/pkg/protocol/component/equippable.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/instrument.go b/pkg/protocol/component/instrument.go index 5f81af3..54218b9 100644 --- a/pkg/protocol/component/instrument.go +++ b/pkg/protocol/component/instrument.go @@ -1,9 +1,10 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/intangible_projectile.go b/pkg/protocol/component/intangible_projectile.go index 96a7e75..2fd590a 100644 --- a/pkg/protocol/component/intangible_projectile.go +++ b/pkg/protocol/component/intangible_projectile.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/item_model.go b/pkg/protocol/component/item_model.go index 384f3d9..97a7958 100644 --- a/pkg/protocol/component/item_model.go +++ b/pkg/protocol/component/item_model.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/item_name.go b/pkg/protocol/component/item_name.go index 75617af..a32ceb9 100644 --- a/pkg/protocol/component/item_name.go +++ b/pkg/protocol/component/item_name.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/component/jukebox_playable.go b/pkg/protocol/component/jukebox_playable.go index 81016e8..47dab5d 100644 --- a/pkg/protocol/component/jukebox_playable.go +++ b/pkg/protocol/component/jukebox_playable.go @@ -3,9 +3,10 @@ package component import ( "io" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/net/packet" ) type JukeboxPlayable struct { diff --git a/pkg/protocol/component/lock.go b/pkg/protocol/component/lock.go index 761b568..e931aff 100644 --- a/pkg/protocol/component/lock.go +++ b/pkg/protocol/component/lock.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/lodestone_tracker.go b/pkg/protocol/component/lodestone_tracker.go index c2d5a7d..5d31977 100644 --- a/pkg/protocol/component/lodestone_tracker.go +++ b/pkg/protocol/component/lodestone_tracker.go @@ -1,9 +1,10 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/lore.go b/pkg/protocol/component/lore.go index 6bfa76e..bb3cd08 100644 --- a/pkg/protocol/component/lore.go +++ b/pkg/protocol/component/lore.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/component/map_decorations.go b/pkg/protocol/component/map_decorations.go index 470dc63..48cca9e 100644 --- a/pkg/protocol/component/map_decorations.go +++ b/pkg/protocol/component/map_decorations.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/note_block_sound.go b/pkg/protocol/component/note_block_sound.go index 1cb290c..5286f25 100644 --- a/pkg/protocol/component/note_block_sound.go +++ b/pkg/protocol/component/note_block_sound.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/painting_variant.go b/pkg/protocol/component/painting_variant.go index bb00762..45f952e 100644 --- a/pkg/protocol/component/painting_variant.go +++ b/pkg/protocol/component/painting_variant.go @@ -1,9 +1,10 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/profile.go b/pkg/protocol/component/profile.go index a4135c9..2b5379f 100644 --- a/pkg/protocol/component/profile.go +++ b/pkg/protocol/component/profile.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/provides_banner_patterns.go b/pkg/protocol/component/provides_banner_patterns.go index 921de15..1297140 100644 --- a/pkg/protocol/component/provides_banner_patterns.go +++ b/pkg/protocol/component/provides_banner_patterns.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/provides_trim_material.go b/pkg/protocol/component/provides_trim_material.go index d40ae45..0d229c9 100644 --- a/pkg/protocol/component/provides_trim_material.go +++ b/pkg/protocol/component/provides_trim_material.go @@ -3,8 +3,9 @@ package component import ( "io" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/net/packet" ) type ProvidesTrimMaterial struct { diff --git a/pkg/protocol/component/recipes.go b/pkg/protocol/component/recipes.go index 3aacf54..1ef9677 100644 --- a/pkg/protocol/component/recipes.go +++ b/pkg/protocol/component/recipes.go @@ -1,8 +1,9 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/component/repairable.go b/pkg/protocol/component/repairable.go index fc0fecf..caac264 100644 --- a/pkg/protocol/component/repairable.go +++ b/pkg/protocol/component/repairable.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/tool.go b/pkg/protocol/component/tool.go index 97da645..260ad79 100644 --- a/pkg/protocol/component/tool.go +++ b/pkg/protocol/component/tool.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/tooltip_style.go b/pkg/protocol/component/tooltip_style.go index 0608da5..beff217 100644 --- a/pkg/protocol/component/tooltip_style.go +++ b/pkg/protocol/component/tooltip_style.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/trim.go b/pkg/protocol/component/trim.go index f04a476..eac7a61 100644 --- a/pkg/protocol/component/trim.go +++ b/pkg/protocol/component/trim.go @@ -1,9 +1,10 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/use_cooldown.go b/pkg/protocol/component/use_cooldown.go index 2eef55d..2700f18 100644 --- a/pkg/protocol/component/use_cooldown.go +++ b/pkg/protocol/component/use_cooldown.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/writable_book_content.go b/pkg/protocol/component/writable_book_content.go index d1b2c4e..ed9db5c 100644 --- a/pkg/protocol/component/writable_book_content.go +++ b/pkg/protocol/component/writable_book_content.go @@ -1,8 +1,9 @@ package component import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/component/written_book_content.go b/pkg/protocol/component/written_book_content.go index da5873d..deeeaad 100644 --- a/pkg/protocol/component/written_book_content.go +++ b/pkg/protocol/component/written_book_content.go @@ -1,9 +1,10 @@ package component import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/metadata/codecs.go b/pkg/protocol/metadata/codecs.go index 349799b..9c2433c 100644 --- a/pkg/protocol/metadata/codecs.go +++ b/pkg/protocol/metadata/codecs.go @@ -5,7 +5,7 @@ package metadata import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *Rotation) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/metadata/metadata.go b/pkg/protocol/metadata/metadata.go index 4ae04b6..5446404 100644 --- a/pkg/protocol/metadata/metadata.go +++ b/pkg/protocol/metadata/metadata.go @@ -3,7 +3,7 @@ package metadata import ( "io" - pk "github.com/Tnze/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type MetadataType int32 diff --git a/pkg/protocol/metadata/values.go b/pkg/protocol/metadata/values.go index 2b222c0..84e6779 100644 --- a/pkg/protocol/metadata/values.go +++ b/pkg/protocol/metadata/values.go @@ -1,12 +1,13 @@ package metadata import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/nbt" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/component" "git.konjactw.dev/patyhank/minego/pkg/protocol/particle" "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/nbt" - pk "github.com/Tnze/go-mc/net/packet" ) type Byte struct { diff --git a/pkg/protocol/packet/configuration/client/clear_dialog.go b/pkg/protocol/packet/configuration/client/clear_dialog.go index ac2e33a..b3749df 100644 --- a/pkg/protocol/packet/configuration/client/clear_dialog.go +++ b/pkg/protocol/packet/configuration/client/clear_dialog.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigClearDialog struct { diff --git a/pkg/protocol/packet/configuration/client/codecs.go b/pkg/protocol/packet/configuration/client/codecs.go index 20b6882..d4f2e00 100644 --- a/pkg/protocol/packet/configuration/client/codecs.go +++ b/pkg/protocol/packet/configuration/client/codecs.go @@ -6,7 +6,7 @@ import ( "errors" "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *ConfigClearDialog) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/configuration/client/cookie_request.go b/pkg/protocol/packet/configuration/client/cookie_request.go index cdcb315..6057e24 100644 --- a/pkg/protocol/packet/configuration/client/cookie_request.go +++ b/pkg/protocol/packet/configuration/client/cookie_request.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigCookieRequest struct { diff --git a/pkg/protocol/packet/configuration/client/custom_payload.go b/pkg/protocol/packet/configuration/client/custom_payload.go index 6e43b3f..b1efd11 100644 --- a/pkg/protocol/packet/configuration/client/custom_payload.go +++ b/pkg/protocol/packet/configuration/client/custom_payload.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigCustomPayload struct { diff --git a/pkg/protocol/packet/configuration/client/custom_report_details.go b/pkg/protocol/packet/configuration/client/custom_report_details.go index 83c5f73..f046c96 100644 --- a/pkg/protocol/packet/configuration/client/custom_report_details.go +++ b/pkg/protocol/packet/configuration/client/custom_report_details.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigCustomReportDetails struct { diff --git a/pkg/protocol/packet/configuration/client/disconnect.go b/pkg/protocol/packet/configuration/client/disconnect.go index 6f61e6a..f642300 100644 --- a/pkg/protocol/packet/configuration/client/disconnect.go +++ b/pkg/protocol/packet/configuration/client/disconnect.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/configuration/client/finish_configuration.go b/pkg/protocol/packet/configuration/client/finish_configuration.go index 60e85df..33d39cd 100644 --- a/pkg/protocol/packet/configuration/client/finish_configuration.go +++ b/pkg/protocol/packet/configuration/client/finish_configuration.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigFinishConfiguration struct { diff --git a/pkg/protocol/packet/configuration/client/keep_alive.go b/pkg/protocol/packet/configuration/client/keep_alive.go index be50f07..c4275b1 100644 --- a/pkg/protocol/packet/configuration/client/keep_alive.go +++ b/pkg/protocol/packet/configuration/client/keep_alive.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigKeepAlive struct { diff --git a/pkg/protocol/packet/configuration/client/packet.go b/pkg/protocol/packet/configuration/client/packet.go index cd05172..317bf50 100644 --- a/pkg/protocol/packet/configuration/client/packet.go +++ b/pkg/protocol/packet/configuration/client/packet.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ClientboundPacket interface { diff --git a/pkg/protocol/packet/configuration/client/ping.go b/pkg/protocol/packet/configuration/client/ping.go index 65fdcca..bd29337 100644 --- a/pkg/protocol/packet/configuration/client/ping.go +++ b/pkg/protocol/packet/configuration/client/ping.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigPing struct { diff --git a/pkg/protocol/packet/configuration/client/registry_data.go b/pkg/protocol/packet/configuration/client/registry_data.go index 3bb3065..a9701b9 100644 --- a/pkg/protocol/packet/configuration/client/registry_data.go +++ b/pkg/protocol/packet/configuration/client/registry_data.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/packet/configuration/client/reset_chat.go b/pkg/protocol/packet/configuration/client/reset_chat.go index a10851e..1be82f0 100644 --- a/pkg/protocol/packet/configuration/client/reset_chat.go +++ b/pkg/protocol/packet/configuration/client/reset_chat.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigResetChat struct { diff --git a/pkg/protocol/packet/configuration/client/resource_pack_pop.go b/pkg/protocol/packet/configuration/client/resource_pack_pop.go index 72dd547..f535cd4 100644 --- a/pkg/protocol/packet/configuration/client/resource_pack_pop.go +++ b/pkg/protocol/packet/configuration/client/resource_pack_pop.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigResourcePackPop struct { diff --git a/pkg/protocol/packet/configuration/client/resource_pack_push.go b/pkg/protocol/packet/configuration/client/resource_pack_push.go index 002e95f..1c75c6b 100644 --- a/pkg/protocol/packet/configuration/client/resource_pack_push.go +++ b/pkg/protocol/packet/configuration/client/resource_pack_push.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigResourcePackPush struct { diff --git a/pkg/protocol/packet/configuration/client/select_known_packs.go b/pkg/protocol/packet/configuration/client/select_known_packs.go index f4694d8..275be80 100644 --- a/pkg/protocol/packet/configuration/client/select_known_packs.go +++ b/pkg/protocol/packet/configuration/client/select_known_packs.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type KnownPack struct { diff --git a/pkg/protocol/packet/configuration/client/server_links.go b/pkg/protocol/packet/configuration/client/server_links.go index 89e651b..8bf4da0 100644 --- a/pkg/protocol/packet/configuration/client/server_links.go +++ b/pkg/protocol/packet/configuration/client/server_links.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigServerLinks struct { diff --git a/pkg/protocol/packet/configuration/client/show_dialog.go b/pkg/protocol/packet/configuration/client/show_dialog.go index 3f952b9..3e47960 100644 --- a/pkg/protocol/packet/configuration/client/show_dialog.go +++ b/pkg/protocol/packet/configuration/client/show_dialog.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigShowDialog struct { diff --git a/pkg/protocol/packet/configuration/client/store_cookie.go b/pkg/protocol/packet/configuration/client/store_cookie.go index 79393b9..bfc06fa 100644 --- a/pkg/protocol/packet/configuration/client/store_cookie.go +++ b/pkg/protocol/packet/configuration/client/store_cookie.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigStoreCookie struct { diff --git a/pkg/protocol/packet/configuration/client/transfer.go b/pkg/protocol/packet/configuration/client/transfer.go index 78e6307..5accebc 100644 --- a/pkg/protocol/packet/configuration/client/transfer.go +++ b/pkg/protocol/packet/configuration/client/transfer.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigTransfer struct { diff --git a/pkg/protocol/packet/configuration/client/update_enabled_features.go b/pkg/protocol/packet/configuration/client/update_enabled_features.go index fa65d44..ef7fa3c 100644 --- a/pkg/protocol/packet/configuration/client/update_enabled_features.go +++ b/pkg/protocol/packet/configuration/client/update_enabled_features.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigUpdateEnabledFeatures struct { diff --git a/pkg/protocol/packet/configuration/client/update_tags.go b/pkg/protocol/packet/configuration/client/update_tags.go index 705624e..3f6c4b8 100644 --- a/pkg/protocol/packet/configuration/client/update_tags.go +++ b/pkg/protocol/packet/configuration/client/update_tags.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/client" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigUpdateTags struct { diff --git a/pkg/protocol/packet/configuration/server/client_information.go b/pkg/protocol/packet/configuration/server/client_information.go index 911eba2..fe2c87b 100644 --- a/pkg/protocol/packet/configuration/server/client_information.go +++ b/pkg/protocol/packet/configuration/server/client_information.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigClientInformation struct { diff --git a/pkg/protocol/packet/configuration/server/codecs.go b/pkg/protocol/packet/configuration/server/codecs.go index 881a434..7df6465 100644 --- a/pkg/protocol/packet/configuration/server/codecs.go +++ b/pkg/protocol/packet/configuration/server/codecs.go @@ -5,7 +5,7 @@ package server import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *ConfigCustomClickAction) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/configuration/server/cookie_response.go b/pkg/protocol/packet/configuration/server/cookie_response.go index 8fd6447..b720c71 100644 --- a/pkg/protocol/packet/configuration/server/cookie_response.go +++ b/pkg/protocol/packet/configuration/server/cookie_response.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigCookieResponse struct { diff --git a/pkg/protocol/packet/configuration/server/custom_click_action.go b/pkg/protocol/packet/configuration/server/custom_click_action.go index fdc51d4..cf10064 100644 --- a/pkg/protocol/packet/configuration/server/custom_click_action.go +++ b/pkg/protocol/packet/configuration/server/custom_click_action.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/packet/configuration/server/custom_payload.go b/pkg/protocol/packet/configuration/server/custom_payload.go index 7dd6fee..5570e56 100644 --- a/pkg/protocol/packet/configuration/server/custom_payload.go +++ b/pkg/protocol/packet/configuration/server/custom_payload.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigCustomPayload struct { diff --git a/pkg/protocol/packet/configuration/server/finish_configuration.go b/pkg/protocol/packet/configuration/server/finish_configuration.go index a0763d5..ab86204 100644 --- a/pkg/protocol/packet/configuration/server/finish_configuration.go +++ b/pkg/protocol/packet/configuration/server/finish_configuration.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigFinishConfiguration struct { diff --git a/pkg/protocol/packet/configuration/server/keep_alive.go b/pkg/protocol/packet/configuration/server/keep_alive.go index c03be25..746b474 100644 --- a/pkg/protocol/packet/configuration/server/keep_alive.go +++ b/pkg/protocol/packet/configuration/server/keep_alive.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigKeepAlive struct { diff --git a/pkg/protocol/packet/configuration/server/packet.go b/pkg/protocol/packet/configuration/server/packet.go index 3966541..6633556 100644 --- a/pkg/protocol/packet/configuration/server/packet.go +++ b/pkg/protocol/packet/configuration/server/packet.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ServerboundPacket interface { diff --git a/pkg/protocol/packet/configuration/server/pong.go b/pkg/protocol/packet/configuration/server/pong.go index 8af30b4..21e6c15 100644 --- a/pkg/protocol/packet/configuration/server/pong.go +++ b/pkg/protocol/packet/configuration/server/pong.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigPong struct { diff --git a/pkg/protocol/packet/configuration/server/resource_pack.go b/pkg/protocol/packet/configuration/server/resource_pack.go index fb36c48..9755589 100644 --- a/pkg/protocol/packet/configuration/server/resource_pack.go +++ b/pkg/protocol/packet/configuration/server/resource_pack.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/game/server" - "github.com/Tnze/go-mc/data/packetid" ) type ConfigResourcePack struct { diff --git a/pkg/protocol/packet/configuration/server/select_known_packs.go b/pkg/protocol/packet/configuration/server/select_known_packs.go index 97761fe..2c5463d 100644 --- a/pkg/protocol/packet/configuration/server/select_known_packs.go +++ b/pkg/protocol/packet/configuration/server/select_known_packs.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/packet/configuration/client" - "github.com/Tnze/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/add_entity.go b/pkg/protocol/packet/game/client/add_entity.go index 18fdaab..076a5b8 100644 --- a/pkg/protocol/packet/game/client/add_entity.go +++ b/pkg/protocol/packet/game/client/add_entity.go @@ -1,9 +1,10 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*AddEntity)(nil) diff --git a/pkg/protocol/packet/game/client/animate.go b/pkg/protocol/packet/game/client/animate.go index cb4652d..9af8191 100644 --- a/pkg/protocol/packet/game/client/animate.go +++ b/pkg/protocol/packet/game/client/animate.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*Animate)(nil) diff --git a/pkg/protocol/packet/game/client/award_stats.go b/pkg/protocol/packet/game/client/award_stats.go index 4532bcb..5402079 100644 --- a/pkg/protocol/packet/game/client/award_stats.go +++ b/pkg/protocol/packet/game/client/award_stats.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) // codec:gen diff --git a/pkg/protocol/packet/game/client/block_changed_ack.go b/pkg/protocol/packet/game/client/block_changed_ack.go index d76c52b..19c5c3c 100644 --- a/pkg/protocol/packet/game/client/block_changed_ack.go +++ b/pkg/protocol/packet/game/client/block_changed_ack.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) var _ ClientboundPacket = (*BlockChangedAck)(nil) diff --git a/pkg/protocol/packet/game/client/block_destruction.go b/pkg/protocol/packet/game/client/block_destruction.go index 85d57a3..7a85773 100644 --- a/pkg/protocol/packet/game/client/block_destruction.go +++ b/pkg/protocol/packet/game/client/block_destruction.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*BlockDestruction)(nil) diff --git a/pkg/protocol/packet/game/client/block_entity_data.go b/pkg/protocol/packet/game/client/block_entity_data.go index 44dae37..2321385 100644 --- a/pkg/protocol/packet/game/client/block_entity_data.go +++ b/pkg/protocol/packet/game/client/block_entity_data.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/nbt" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) // codec:gen diff --git a/pkg/protocol/packet/game/client/block_event.go b/pkg/protocol/packet/game/client/block_event.go index 81f2cfb..383825f 100644 --- a/pkg/protocol/packet/game/client/block_event.go +++ b/pkg/protocol/packet/game/client/block_event.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) // codec:gen diff --git a/pkg/protocol/packet/game/client/block_update.go b/pkg/protocol/packet/game/client/block_update.go index ca6429c..0ef1f70 100644 --- a/pkg/protocol/packet/game/client/block_update.go +++ b/pkg/protocol/packet/game/client/block_update.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) // codec:gen diff --git a/pkg/protocol/packet/game/client/boss_event.go b/pkg/protocol/packet/game/client/boss_event.go index 4345d5a..9410f1c 100644 --- a/pkg/protocol/packet/game/client/boss_event.go +++ b/pkg/protocol/packet/game/client/boss_event.go @@ -3,9 +3,10 @@ package client import ( "io" - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) // codec:gen diff --git a/pkg/protocol/packet/game/client/codecs.go b/pkg/protocol/packet/game/client/codecs.go index 630b10b..a3908b4 100644 --- a/pkg/protocol/packet/game/client/codecs.go +++ b/pkg/protocol/packet/game/client/codecs.go @@ -6,9 +6,11 @@ import ( "errors" "io" - "git.konjactw.dev/patyhank/minego/pkg/protocol/component" - "github.com/Tnze/go-mc/net/packet" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/net/packet" + + "git.konjactw.dev/patyhank/minego/pkg/protocol/component" ) func (c *AddEntity) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/game/client/command_suggestions.go b/pkg/protocol/packet/game/client/command_suggestions.go index 1c88877..b70f5ef 100644 --- a/pkg/protocol/packet/game/client/command_suggestions.go +++ b/pkg/protocol/packet/game/client/command_suggestions.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/container_set_data.go b/pkg/protocol/packet/game/client/container_set_data.go index 6991b96..868f437 100644 --- a/pkg/protocol/packet/game/client/container_set_data.go +++ b/pkg/protocol/packet/game/client/container_set_data.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*ContainerSetData)(nil) diff --git a/pkg/protocol/packet/game/client/container_set_slot.go b/pkg/protocol/packet/game/client/container_set_slot.go index fc61420..14f270e 100644 --- a/pkg/protocol/packet/game/client/container_set_slot.go +++ b/pkg/protocol/packet/game/client/container_set_slot.go @@ -1,9 +1,10 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" ) var _ ClientboundPacket = (*ContainerSetSlot)(nil) diff --git a/pkg/protocol/packet/game/client/cookie_request.go b/pkg/protocol/packet/game/client/cookie_request.go index 113c1c8..4a8c8b1 100644 --- a/pkg/protocol/packet/game/client/cookie_request.go +++ b/pkg/protocol/packet/game/client/cookie_request.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type CookieRequest struct { diff --git a/pkg/protocol/packet/game/client/cooldown.go b/pkg/protocol/packet/game/client/cooldown.go index 3d66bb4..60191e0 100644 --- a/pkg/protocol/packet/game/client/cooldown.go +++ b/pkg/protocol/packet/game/client/cooldown.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*Cooldown)(nil) diff --git a/pkg/protocol/packet/game/client/custom_chat_completions.go b/pkg/protocol/packet/game/client/custom_chat_completions.go index 401380e..cdcbd4a 100644 --- a/pkg/protocol/packet/game/client/custom_chat_completions.go +++ b/pkg/protocol/packet/game/client/custom_chat_completions.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*CustomChatCompletions)(nil) diff --git a/pkg/protocol/packet/game/client/custom_payload.go b/pkg/protocol/packet/game/client/custom_payload.go index 8493b93..907f255 100644 --- a/pkg/protocol/packet/game/client/custom_payload.go +++ b/pkg/protocol/packet/game/client/custom_payload.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type CustomPayload struct { diff --git a/pkg/protocol/packet/game/client/damage_event.go b/pkg/protocol/packet/game/client/damage_event.go index 64f2591..f85ab7c 100644 --- a/pkg/protocol/packet/game/client/damage_event.go +++ b/pkg/protocol/packet/game/client/damage_event.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*DamageEvent)(nil) diff --git a/pkg/protocol/packet/game/client/debug_sample.go b/pkg/protocol/packet/game/client/debug_sample.go index a4766b3..a7c404d 100644 --- a/pkg/protocol/packet/game/client/debug_sample.go +++ b/pkg/protocol/packet/game/client/debug_sample.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*DebugSample)(nil) diff --git a/pkg/protocol/packet/game/client/delete_chat.go b/pkg/protocol/packet/game/client/delete_chat.go index 05c3968..674ca3c 100644 --- a/pkg/protocol/packet/game/client/delete_chat.go +++ b/pkg/protocol/packet/game/client/delete_chat.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*DeleteChat)(nil) diff --git a/pkg/protocol/packet/game/client/disconnect.go b/pkg/protocol/packet/game/client/disconnect.go index 67f5c69..3bec9eb 100644 --- a/pkg/protocol/packet/game/client/disconnect.go +++ b/pkg/protocol/packet/game/client/disconnect.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type Disconnect struct { diff --git a/pkg/protocol/packet/game/client/disguised_chat.go b/pkg/protocol/packet/game/client/disguised_chat.go index 791dd34..9b42f03 100644 --- a/pkg/protocol/packet/game/client/disguised_chat.go +++ b/pkg/protocol/packet/game/client/disguised_chat.go @@ -1,9 +1,9 @@ package client import ( - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*DisguisedChat)(nil) diff --git a/pkg/protocol/packet/game/client/entity_event.go b/pkg/protocol/packet/game/client/entity_event.go index 49e5b61..5afa1bf 100644 --- a/pkg/protocol/packet/game/client/entity_event.go +++ b/pkg/protocol/packet/game/client/entity_event.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*EntityEvent)(nil) diff --git a/pkg/protocol/packet/game/client/explode.go b/pkg/protocol/packet/game/client/explode.go index 96bd64e..92ab328 100644 --- a/pkg/protocol/packet/game/client/explode.go +++ b/pkg/protocol/packet/game/client/explode.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*Explode)(nil) diff --git a/pkg/protocol/packet/game/client/forget_level_chunk.go b/pkg/protocol/packet/game/client/forget_level_chunk.go index 5b36478..1e59e56 100644 --- a/pkg/protocol/packet/game/client/forget_level_chunk.go +++ b/pkg/protocol/packet/game/client/forget_level_chunk.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/level" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/level" ) var _ ClientboundPacket = (*ForgetLevelChunk)(nil) diff --git a/pkg/protocol/packet/game/client/game_event.go b/pkg/protocol/packet/game/client/game_event.go index 90bc7fd..2683ccc 100644 --- a/pkg/protocol/packet/game/client/game_event.go +++ b/pkg/protocol/packet/game/client/game_event.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) var _ ClientboundPacket = (*GameEvent)(nil) diff --git a/pkg/protocol/packet/game/client/level_chunk_with_light.go b/pkg/protocol/packet/game/client/level_chunk_with_light.go index 19bbdd6..d5a74c3 100644 --- a/pkg/protocol/packet/game/client/level_chunk_with_light.go +++ b/pkg/protocol/packet/game/client/level_chunk_with_light.go @@ -3,7 +3,7 @@ package client import ( "io" - "github.com/Tnze/go-mc/level" + "git.konjactw.dev/falloutBot/go-mc/level" ) var _ ClientboundPacket = (*LevelChunkWithLight)(nil) diff --git a/pkg/protocol/packet/game/client/level_event.go b/pkg/protocol/packet/game/client/level_event.go index 08d4ddd..61a1da1 100644 --- a/pkg/protocol/packet/game/client/level_event.go +++ b/pkg/protocol/packet/game/client/level_event.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*LevelEvent)(nil) diff --git a/pkg/protocol/packet/game/client/login.go b/pkg/protocol/packet/game/client/login.go index afd34e0..ad4d370 100644 --- a/pkg/protocol/packet/game/client/login.go +++ b/pkg/protocol/packet/game/client/login.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) var _ ClientboundPacket = (*Login)(nil) diff --git a/pkg/protocol/packet/game/client/map_data.go b/pkg/protocol/packet/game/client/map_data.go index 80b418a..03fd499 100644 --- a/pkg/protocol/packet/game/client/map_data.go +++ b/pkg/protocol/packet/game/client/map_data.go @@ -3,8 +3,8 @@ package client import ( "io" - "github.com/Tnze/go-mc/chat" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/chat" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/move_entity_pos_rot.go b/pkg/protocol/packet/game/client/move_entity_pos_rot.go index d9d2989..80ce2da 100644 --- a/pkg/protocol/packet/game/client/move_entity_pos_rot.go +++ b/pkg/protocol/packet/game/client/move_entity_pos_rot.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type UpdateEntityPositionAndRotation struct { diff --git a/pkg/protocol/packet/game/client/move_minecart_along_track.go b/pkg/protocol/packet/game/client/move_minecart_along_track.go index a47c454..777a7c7 100644 --- a/pkg/protocol/packet/game/client/move_minecart_along_track.go +++ b/pkg/protocol/packet/game/client/move_minecart_along_track.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type MinecartStep struct { diff --git a/pkg/protocol/packet/game/client/open_screen.go b/pkg/protocol/packet/game/client/open_screen.go index 6d1003a..3fcea0d 100644 --- a/pkg/protocol/packet/game/client/open_screen.go +++ b/pkg/protocol/packet/game/client/open_screen.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type OpenScreen struct { diff --git a/pkg/protocol/packet/game/client/open_sign_editor.go b/pkg/protocol/packet/game/client/open_sign_editor.go index 8014150..7987b5b 100644 --- a/pkg/protocol/packet/game/client/open_sign_editor.go +++ b/pkg/protocol/packet/game/client/open_sign_editor.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type OpenSignEditor struct { diff --git a/pkg/protocol/packet/game/client/packet.go b/pkg/protocol/packet/game/client/packet.go index 3ee2e0d..136cc88 100644 --- a/pkg/protocol/packet/game/client/packet.go +++ b/pkg/protocol/packet/game/client/packet.go @@ -2,8 +2,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ClientboundPacket interface { diff --git a/pkg/protocol/packet/game/client/player_abilities.go b/pkg/protocol/packet/game/client/player_abilities.go index 6fbdda9..c7bdb76 100644 --- a/pkg/protocol/packet/game/client/player_abilities.go +++ b/pkg/protocol/packet/game/client/player_abilities.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) var _ ClientboundPacket = (*PlayerAbilities)(nil) diff --git a/pkg/protocol/packet/game/client/player_combat_kill.go b/pkg/protocol/packet/game/client/player_combat_kill.go index 9512fbf..129bde1 100644 --- a/pkg/protocol/packet/game/client/player_combat_kill.go +++ b/pkg/protocol/packet/game/client/player_combat_kill.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type CombatDeath struct { diff --git a/pkg/protocol/packet/game/client/player_info_update.go b/pkg/protocol/packet/game/client/player_info_update.go index ee29941..0439b95 100644 --- a/pkg/protocol/packet/game/client/player_info_update.go +++ b/pkg/protocol/packet/game/client/player_info_update.go @@ -3,11 +3,12 @@ package client import ( "io" - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/chat/sign" - pk "github.com/Tnze/go-mc/net/packet" - "github.com/Tnze/go-mc/yggdrasil/user" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/chat/sign" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/yggdrasil/user" ) type PlayerInfo interface { diff --git a/pkg/protocol/packet/game/client/player_position.go b/pkg/protocol/packet/game/client/player_position.go index b5349fd..4270ce9 100644 --- a/pkg/protocol/packet/game/client/player_position.go +++ b/pkg/protocol/packet/game/client/player_position.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) var _ ClientboundPacket = (*PlayerPosition)(nil) diff --git a/pkg/protocol/packet/game/client/recipe_book_add.go b/pkg/protocol/packet/game/client/recipe_book_add.go index a6af0ca..2d772ce 100644 --- a/pkg/protocol/packet/game/client/recipe_book_add.go +++ b/pkg/protocol/packet/game/client/recipe_book_add.go @@ -1,8 +1,9 @@ package client import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot/display/recipe" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/resource_pack_push.go b/pkg/protocol/packet/game/client/resource_pack_push.go index d4d5837..782b5a1 100644 --- a/pkg/protocol/packet/game/client/resource_pack_push.go +++ b/pkg/protocol/packet/game/client/resource_pack_push.go @@ -1,8 +1,9 @@ package client import ( - "github.com/Tnze/go-mc/chat" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/respawn.go b/pkg/protocol/packet/game/client/respawn.go index 5e14e75..f979b64 100644 --- a/pkg/protocol/packet/game/client/respawn.go +++ b/pkg/protocol/packet/game/client/respawn.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) var _ ClientboundPacket = (*Respawn)(nil) diff --git a/pkg/protocol/packet/game/client/rotate_head.go b/pkg/protocol/packet/game/client/rotate_head.go index 8990c4b..d705ece 100644 --- a/pkg/protocol/packet/game/client/rotate_head.go +++ b/pkg/protocol/packet/game/client/rotate_head.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type SetHeadRotation struct { diff --git a/pkg/protocol/packet/game/client/server_data.go b/pkg/protocol/packet/game/client/server_data.go index cb7616e..9743807 100644 --- a/pkg/protocol/packet/game/client/server_data.go +++ b/pkg/protocol/packet/game/client/server_data.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/server_links.go b/pkg/protocol/packet/game/client/server_links.go index 38fd2d0..2819f64 100644 --- a/pkg/protocol/packet/game/client/server_links.go +++ b/pkg/protocol/packet/game/client/server_links.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type ServerLinkData struct { diff --git a/pkg/protocol/packet/game/client/set_action_bar_text.go b/pkg/protocol/packet/game/client/set_action_bar_text.go index a28637f..f064314 100644 --- a/pkg/protocol/packet/game/client/set_action_bar_text.go +++ b/pkg/protocol/packet/game/client/set_action_bar_text.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type SetActionBarText struct { diff --git a/pkg/protocol/packet/game/client/set_default_spawn_position.go b/pkg/protocol/packet/game/client/set_default_spawn_position.go index dab8219..51d9d9e 100644 --- a/pkg/protocol/packet/game/client/set_default_spawn_position.go +++ b/pkg/protocol/packet/game/client/set_default_spawn_position.go @@ -1,6 +1,6 @@ package client -import pk "github.com/Tnze/go-mc/net/packet" +import pk "git.konjactw.dev/falloutBot/go-mc/net/packet" //codec:gen type SetDefaultSpawnPosition struct { diff --git a/pkg/protocol/packet/game/client/set_equipment.go b/pkg/protocol/packet/game/client/set_equipment.go index 55b22d6..583997a 100644 --- a/pkg/protocol/packet/game/client/set_equipment.go +++ b/pkg/protocol/packet/game/client/set_equipment.go @@ -3,8 +3,9 @@ package client import ( "io" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) type EquipmentData struct { diff --git a/pkg/protocol/packet/game/client/set_objective.go b/pkg/protocol/packet/game/client/set_objective.go index 86488b3..6f7a18a 100644 --- a/pkg/protocol/packet/game/client/set_objective.go +++ b/pkg/protocol/packet/game/client/set_objective.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type ObjectivesData struct { diff --git a/pkg/protocol/packet/game/client/set_player_team.go b/pkg/protocol/packet/game/client/set_player_team.go index 0a07cd0..1b8aad1 100644 --- a/pkg/protocol/packet/game/client/set_player_team.go +++ b/pkg/protocol/packet/game/client/set_player_team.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/set_score.go b/pkg/protocol/packet/game/client/set_score.go index 787d30c..91b901d 100644 --- a/pkg/protocol/packet/game/client/set_score.go +++ b/pkg/protocol/packet/game/client/set_score.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/set_subtitle_text.go b/pkg/protocol/packet/game/client/set_subtitle_text.go index dc72ee8..edda52a 100644 --- a/pkg/protocol/packet/game/client/set_subtitle_text.go +++ b/pkg/protocol/packet/game/client/set_subtitle_text.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type SetSubtitleText struct { diff --git a/pkg/protocol/packet/game/client/set_title_text.go b/pkg/protocol/packet/game/client/set_title_text.go index 0fcb31f..f8a2c45 100644 --- a/pkg/protocol/packet/game/client/set_title_text.go +++ b/pkg/protocol/packet/game/client/set_title_text.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type SetTitleText struct { diff --git a/pkg/protocol/packet/game/client/show_dialog.go b/pkg/protocol/packet/game/client/show_dialog.go index e9eb50a..a267316 100644 --- a/pkg/protocol/packet/game/client/show_dialog.go +++ b/pkg/protocol/packet/game/client/show_dialog.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Tnze/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/sound_entity.go b/pkg/protocol/packet/game/client/sound_entity.go index 003cb9d..e11cb7b 100644 --- a/pkg/protocol/packet/game/client/sound_entity.go +++ b/pkg/protocol/packet/game/client/sound_entity.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/component" - "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/stop_sound.go b/pkg/protocol/packet/game/client/stop_sound.go index 1085c28..136e293 100644 --- a/pkg/protocol/packet/game/client/stop_sound.go +++ b/pkg/protocol/packet/game/client/stop_sound.go @@ -3,7 +3,7 @@ package client import ( "io" - pk "github.com/Tnze/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type StopSound struct { diff --git a/pkg/protocol/packet/game/client/system_chat.go b/pkg/protocol/packet/game/client/system_chat.go index ca64832..8844da1 100644 --- a/pkg/protocol/packet/game/client/system_chat.go +++ b/pkg/protocol/packet/game/client/system_chat.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type SystemChatMessage struct { diff --git a/pkg/protocol/packet/game/client/tab_list.go b/pkg/protocol/packet/game/client/tab_list.go index 218e8d5..4d2abbb 100644 --- a/pkg/protocol/packet/game/client/tab_list.go +++ b/pkg/protocol/packet/game/client/tab_list.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type SetTabListHeaderAndFooter struct { diff --git a/pkg/protocol/packet/game/client/tag_query.go b/pkg/protocol/packet/game/client/tag_query.go index ded20f7..3541288 100644 --- a/pkg/protocol/packet/game/client/tag_query.go +++ b/pkg/protocol/packet/game/client/tag_query.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/nbt" +import "git.konjactw.dev/falloutBot/go-mc/nbt" //codec:gen type TagQueryResponse struct { diff --git a/pkg/protocol/packet/game/client/test_instance_block_status.go b/pkg/protocol/packet/game/client/test_instance_block_status.go index 1015515..2b63c22 100644 --- a/pkg/protocol/packet/game/client/test_instance_block_status.go +++ b/pkg/protocol/packet/game/client/test_instance_block_status.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/chat" +import "git.konjactw.dev/falloutBot/go-mc/chat" //codec:gen type TestInstanceBlockStatus struct { diff --git a/pkg/protocol/packet/game/client/update_advancements.go b/pkg/protocol/packet/game/client/update_advancements.go index 75796dd..1f31e51 100644 --- a/pkg/protocol/packet/game/client/update_advancements.go +++ b/pkg/protocol/packet/game/client/update_advancements.go @@ -1,8 +1,9 @@ package client import ( + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/chat" ) //codec:gen diff --git a/pkg/protocol/packet/game/client/update_light.go b/pkg/protocol/packet/game/client/update_light.go index 61e2c13..2e373db 100644 --- a/pkg/protocol/packet/game/client/update_light.go +++ b/pkg/protocol/packet/game/client/update_light.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/level" +import "git.konjactw.dev/falloutBot/go-mc/level" //codec:gen type UpdateLight struct { diff --git a/pkg/protocol/packet/game/client/update_recipes.go b/pkg/protocol/packet/game/client/update_recipes.go index 14b93fc..31a7336 100644 --- a/pkg/protocol/packet/game/client/update_recipes.go +++ b/pkg/protocol/packet/game/client/update_recipes.go @@ -1,8 +1,9 @@ package client import ( + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot/display/slot" - pk "github.com/Tnze/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/accept_teleportation.go b/pkg/protocol/packet/game/server/accept_teleportation.go index 8a6adc0..f20ee1c 100644 --- a/pkg/protocol/packet/game/server/accept_teleportation.go +++ b/pkg/protocol/packet/game/server/accept_teleportation.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type AcceptTeleportation struct { diff --git a/pkg/protocol/packet/game/server/block_entity_tag_query.go b/pkg/protocol/packet/game/server/block_entity_tag_query.go index ab9b728..3969770 100644 --- a/pkg/protocol/packet/game/server/block_entity_tag_query.go +++ b/pkg/protocol/packet/game/server/block_entity_tag_query.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/bundle_item_selected.go b/pkg/protocol/packet/game/server/bundle_item_selected.go index 41f56a3..e8cfab2 100644 --- a/pkg/protocol/packet/game/server/bundle_item_selected.go +++ b/pkg/protocol/packet/game/server/bundle_item_selected.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type BundleItemSelected struct { diff --git a/pkg/protocol/packet/game/server/change_difficulty.go b/pkg/protocol/packet/game/server/change_difficulty.go index bc5b93b..69bd23c 100644 --- a/pkg/protocol/packet/game/server/change_difficulty.go +++ b/pkg/protocol/packet/game/server/change_difficulty.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ChangeDifficulty struct { diff --git a/pkg/protocol/packet/game/server/change_game_mode.go b/pkg/protocol/packet/game/server/change_game_mode.go index a554e98..1dacd26 100644 --- a/pkg/protocol/packet/game/server/change_game_mode.go +++ b/pkg/protocol/packet/game/server/change_game_mode.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ChangeGameMode struct { diff --git a/pkg/protocol/packet/game/server/chat.go b/pkg/protocol/packet/game/server/chat.go index 756a959..9abea8d 100644 --- a/pkg/protocol/packet/game/server/chat.go +++ b/pkg/protocol/packet/game/server/chat.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/chat_ack.go b/pkg/protocol/packet/game/server/chat_ack.go index a0a0ca4..c1f3551 100644 --- a/pkg/protocol/packet/game/server/chat_ack.go +++ b/pkg/protocol/packet/game/server/chat_ack.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ChatAck struct { diff --git a/pkg/protocol/packet/game/server/chat_command.go b/pkg/protocol/packet/game/server/chat_command.go index bc781ed..551e1b5 100644 --- a/pkg/protocol/packet/game/server/chat_command.go +++ b/pkg/protocol/packet/game/server/chat_command.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ChatCommand struct { diff --git a/pkg/protocol/packet/game/server/chat_command_signed.go b/pkg/protocol/packet/game/server/chat_command_signed.go index 2b8ac86..db55290 100644 --- a/pkg/protocol/packet/game/server/chat_command_signed.go +++ b/pkg/protocol/packet/game/server/chat_command_signed.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/chat_session_update.go b/pkg/protocol/packet/game/server/chat_session_update.go index 633a693..32b17b0 100644 --- a/pkg/protocol/packet/game/server/chat_session_update.go +++ b/pkg/protocol/packet/game/server/chat_session_update.go @@ -1,9 +1,10 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/yggdrasil/user" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/yggdrasil/user" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/chunk_batch_received.go b/pkg/protocol/packet/game/server/chunk_batch_received.go index c0906cb..c891c8a 100644 --- a/pkg/protocol/packet/game/server/chunk_batch_received.go +++ b/pkg/protocol/packet/game/server/chunk_batch_received.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ChunkBatchReceived struct { diff --git a/pkg/protocol/packet/game/server/client_command.go b/pkg/protocol/packet/game/server/client_command.go index 4b433a4..7c0d997 100644 --- a/pkg/protocol/packet/game/server/client_command.go +++ b/pkg/protocol/packet/game/server/client_command.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ClientCommand struct { diff --git a/pkg/protocol/packet/game/server/client_information.go b/pkg/protocol/packet/game/server/client_information.go index 2667157..20cb74e 100644 --- a/pkg/protocol/packet/game/server/client_information.go +++ b/pkg/protocol/packet/game/server/client_information.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ClientInformation struct { diff --git a/pkg/protocol/packet/game/server/client_tick_end.go b/pkg/protocol/packet/game/server/client_tick_end.go index e8952d0..218cbd7 100644 --- a/pkg/protocol/packet/game/server/client_tick_end.go +++ b/pkg/protocol/packet/game/server/client_tick_end.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ClientTickEnd struct { diff --git a/pkg/protocol/packet/game/server/codecs.go b/pkg/protocol/packet/game/server/codecs.go index e9f3ae5..31dd79d 100644 --- a/pkg/protocol/packet/game/server/codecs.go +++ b/pkg/protocol/packet/game/server/codecs.go @@ -6,7 +6,7 @@ import ( "errors" "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *AcceptTeleportation) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/game/server/command_suggestion.go b/pkg/protocol/packet/game/server/command_suggestion.go index 50cb2ac..bf2798b 100644 --- a/pkg/protocol/packet/game/server/command_suggestion.go +++ b/pkg/protocol/packet/game/server/command_suggestion.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type CommandSuggestion struct { diff --git a/pkg/protocol/packet/game/server/configuration_acknowledged.go b/pkg/protocol/packet/game/server/configuration_acknowledged.go index 52b8e0a..271b57b 100644 --- a/pkg/protocol/packet/game/server/configuration_acknowledged.go +++ b/pkg/protocol/packet/game/server/configuration_acknowledged.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ConfigurationAcknowledged struct { diff --git a/pkg/protocol/packet/game/server/container_button_click.go b/pkg/protocol/packet/game/server/container_button_click.go index c047cd6..ad08777 100644 --- a/pkg/protocol/packet/game/server/container_button_click.go +++ b/pkg/protocol/packet/game/server/container_button_click.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ContainerButtonClick struct { diff --git a/pkg/protocol/packet/game/server/container_click.go b/pkg/protocol/packet/game/server/container_click.go index 037d24a..213989c 100644 --- a/pkg/protocol/packet/game/server/container_click.go +++ b/pkg/protocol/packet/game/server/container_click.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/container_close.go b/pkg/protocol/packet/game/server/container_close.go index 5536bbb..2760329 100644 --- a/pkg/protocol/packet/game/server/container_close.go +++ b/pkg/protocol/packet/game/server/container_close.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ContainerClose struct { diff --git a/pkg/protocol/packet/game/server/container_slot_state_changed.go b/pkg/protocol/packet/game/server/container_slot_state_changed.go index 46ddac9..8d06963 100644 --- a/pkg/protocol/packet/game/server/container_slot_state_changed.go +++ b/pkg/protocol/packet/game/server/container_slot_state_changed.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type ContainerSlotStateChanged struct { diff --git a/pkg/protocol/packet/game/server/cookie_response.go b/pkg/protocol/packet/game/server/cookie_response.go index 6746b97..697fbd3 100644 --- a/pkg/protocol/packet/game/server/cookie_response.go +++ b/pkg/protocol/packet/game/server/cookie_response.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type CookieResponse struct { diff --git a/pkg/protocol/packet/game/server/custom_click_action.go b/pkg/protocol/packet/game/server/custom_click_action.go index b2a2e90..742606d 100644 --- a/pkg/protocol/packet/game/server/custom_click_action.go +++ b/pkg/protocol/packet/game/server/custom_click_action.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/nbt" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/nbt" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/custom_payload.go b/pkg/protocol/packet/game/server/custom_payload.go index dc028c2..57f1fcc 100644 --- a/pkg/protocol/packet/game/server/custom_payload.go +++ b/pkg/protocol/packet/game/server/custom_payload.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type CustomPayload struct { diff --git a/pkg/protocol/packet/game/server/debug_sample_subscription.go b/pkg/protocol/packet/game/server/debug_sample_subscription.go index 78c543c..9fa807e 100644 --- a/pkg/protocol/packet/game/server/debug_sample_subscription.go +++ b/pkg/protocol/packet/game/server/debug_sample_subscription.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type DebugSampleSubscription struct { diff --git a/pkg/protocol/packet/game/server/edit_book.go b/pkg/protocol/packet/game/server/edit_book.go index 75cb724..fbf7f88 100644 --- a/pkg/protocol/packet/game/server/edit_book.go +++ b/pkg/protocol/packet/game/server/edit_book.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type EditBook struct { diff --git a/pkg/protocol/packet/game/server/entity_tag_query.go b/pkg/protocol/packet/game/server/entity_tag_query.go index 1e708b5..89641bb 100644 --- a/pkg/protocol/packet/game/server/entity_tag_query.go +++ b/pkg/protocol/packet/game/server/entity_tag_query.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type EntityTagQuery struct { diff --git a/pkg/protocol/packet/game/server/interact.go b/pkg/protocol/packet/game/server/interact.go index 1bd9cfb..e9bc33e 100644 --- a/pkg/protocol/packet/game/server/interact.go +++ b/pkg/protocol/packet/game/server/interact.go @@ -1,7 +1,7 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/jigsaw_generate.go b/pkg/protocol/packet/game/server/jigsaw_generate.go index 4470295..6c4c658 100644 --- a/pkg/protocol/packet/game/server/jigsaw_generate.go +++ b/pkg/protocol/packet/game/server/jigsaw_generate.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/keep_alive.go b/pkg/protocol/packet/game/server/keep_alive.go index d523dd8..b76adf5 100644 --- a/pkg/protocol/packet/game/server/keep_alive.go +++ b/pkg/protocol/packet/game/server/keep_alive.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type KeepAlive struct { diff --git a/pkg/protocol/packet/game/server/lock_difficulty.go b/pkg/protocol/packet/game/server/lock_difficulty.go index c78463b..b6cbf64 100644 --- a/pkg/protocol/packet/game/server/lock_difficulty.go +++ b/pkg/protocol/packet/game/server/lock_difficulty.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LockDifficulty struct { diff --git a/pkg/protocol/packet/game/server/move_player_pos.go b/pkg/protocol/packet/game/server/move_player_pos.go index a58fb61..0d54fdb 100644 --- a/pkg/protocol/packet/game/server/move_player_pos.go +++ b/pkg/protocol/packet/game/server/move_player_pos.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type MovePlayerPos struct { diff --git a/pkg/protocol/packet/game/server/move_player_pos_rot.go b/pkg/protocol/packet/game/server/move_player_pos_rot.go index 904c7d6..d7065b5 100644 --- a/pkg/protocol/packet/game/server/move_player_pos_rot.go +++ b/pkg/protocol/packet/game/server/move_player_pos_rot.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type MovePlayerPosRot struct { diff --git a/pkg/protocol/packet/game/server/move_player_rot.go b/pkg/protocol/packet/game/server/move_player_rot.go index f01547e..0b11a2d 100644 --- a/pkg/protocol/packet/game/server/move_player_rot.go +++ b/pkg/protocol/packet/game/server/move_player_rot.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type MovePlayerRot struct { diff --git a/pkg/protocol/packet/game/server/move_player_status_only.go b/pkg/protocol/packet/game/server/move_player_status_only.go index 0012602..0f45ae7 100644 --- a/pkg/protocol/packet/game/server/move_player_status_only.go +++ b/pkg/protocol/packet/game/server/move_player_status_only.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type MovePlayerStatusOnly struct { diff --git a/pkg/protocol/packet/game/server/move_vehicle.go b/pkg/protocol/packet/game/server/move_vehicle.go index 5e7fb4c..7c11fb1 100644 --- a/pkg/protocol/packet/game/server/move_vehicle.go +++ b/pkg/protocol/packet/game/server/move_vehicle.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type MoveVehicle struct { diff --git a/pkg/protocol/packet/game/server/packet.go b/pkg/protocol/packet/game/server/packet.go index 7135c00..742f933 100644 --- a/pkg/protocol/packet/game/server/packet.go +++ b/pkg/protocol/packet/game/server/packet.go @@ -2,8 +2,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ServerboundPacket interface { diff --git a/pkg/protocol/packet/game/server/paddle_boat.go b/pkg/protocol/packet/game/server/paddle_boat.go index faa8f22..1e72d7b 100644 --- a/pkg/protocol/packet/game/server/paddle_boat.go +++ b/pkg/protocol/packet/game/server/paddle_boat.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PaddleBoat struct { diff --git a/pkg/protocol/packet/game/server/pick_item_from_block.go b/pkg/protocol/packet/game/server/pick_item_from_block.go index 9fb86b4..0e08399 100644 --- a/pkg/protocol/packet/game/server/pick_item_from_block.go +++ b/pkg/protocol/packet/game/server/pick_item_from_block.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/pick_item_from_entity.go b/pkg/protocol/packet/game/server/pick_item_from_entity.go index ad805c1..bbcf3b1 100644 --- a/pkg/protocol/packet/game/server/pick_item_from_entity.go +++ b/pkg/protocol/packet/game/server/pick_item_from_entity.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PickItemFromEntity struct { diff --git a/pkg/protocol/packet/game/server/ping_request.go b/pkg/protocol/packet/game/server/ping_request.go index 69794e8..310ecba 100644 --- a/pkg/protocol/packet/game/server/ping_request.go +++ b/pkg/protocol/packet/game/server/ping_request.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PingRequest struct { diff --git a/pkg/protocol/packet/game/server/place_recipe.go b/pkg/protocol/packet/game/server/place_recipe.go index 696372a..d440243 100644 --- a/pkg/protocol/packet/game/server/place_recipe.go +++ b/pkg/protocol/packet/game/server/place_recipe.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PlaceRecipe struct { diff --git a/pkg/protocol/packet/game/server/player_abilities.go b/pkg/protocol/packet/game/server/player_abilities.go index 328dd87..4a47fd1 100644 --- a/pkg/protocol/packet/game/server/player_abilities.go +++ b/pkg/protocol/packet/game/server/player_abilities.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PlayerAbilities struct { diff --git a/pkg/protocol/packet/game/server/player_action.go b/pkg/protocol/packet/game/server/player_action.go index da9425c..6c9beec 100644 --- a/pkg/protocol/packet/game/server/player_action.go +++ b/pkg/protocol/packet/game/server/player_action.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/player_command.go b/pkg/protocol/packet/game/server/player_command.go index b614558..4b08ff8 100644 --- a/pkg/protocol/packet/game/server/player_command.go +++ b/pkg/protocol/packet/game/server/player_command.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PlayerCommand struct { diff --git a/pkg/protocol/packet/game/server/player_input.go b/pkg/protocol/packet/game/server/player_input.go index 427c6f4..34f7b22 100644 --- a/pkg/protocol/packet/game/server/player_input.go +++ b/pkg/protocol/packet/game/server/player_input.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PlayerInput struct { diff --git a/pkg/protocol/packet/game/server/player_loaded.go b/pkg/protocol/packet/game/server/player_loaded.go index c0041dc..130b1c7 100644 --- a/pkg/protocol/packet/game/server/player_loaded.go +++ b/pkg/protocol/packet/game/server/player_loaded.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type PlayerLoaded struct { diff --git a/pkg/protocol/packet/game/server/pong.go b/pkg/protocol/packet/game/server/pong.go index f635263..890de97 100644 --- a/pkg/protocol/packet/game/server/pong.go +++ b/pkg/protocol/packet/game/server/pong.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type Pong struct { diff --git a/pkg/protocol/packet/game/server/recipe_book_change_settings.go b/pkg/protocol/packet/game/server/recipe_book_change_settings.go index 3285bff..fba9702 100644 --- a/pkg/protocol/packet/game/server/recipe_book_change_settings.go +++ b/pkg/protocol/packet/game/server/recipe_book_change_settings.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type RecipeBookChangeSettings struct { diff --git a/pkg/protocol/packet/game/server/recipe_book_seen_recipe.go b/pkg/protocol/packet/game/server/recipe_book_seen_recipe.go index 1af3bb0..924e81f 100644 --- a/pkg/protocol/packet/game/server/recipe_book_seen_recipe.go +++ b/pkg/protocol/packet/game/server/recipe_book_seen_recipe.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type RecipeBookSeenRecipe struct { diff --git a/pkg/protocol/packet/game/server/rename_item.go b/pkg/protocol/packet/game/server/rename_item.go index 2e78b97..05e09cd 100644 --- a/pkg/protocol/packet/game/server/rename_item.go +++ b/pkg/protocol/packet/game/server/rename_item.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type RenameItem struct { diff --git a/pkg/protocol/packet/game/server/resource_pack.go b/pkg/protocol/packet/game/server/resource_pack.go index c4fe83a..3fbb1af 100644 --- a/pkg/protocol/packet/game/server/resource_pack.go +++ b/pkg/protocol/packet/game/server/resource_pack.go @@ -1,8 +1,9 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/seen_advancements.go b/pkg/protocol/packet/game/server/seen_advancements.go index e3d590a..0b01dbc 100644 --- a/pkg/protocol/packet/game/server/seen_advancements.go +++ b/pkg/protocol/packet/game/server/seen_advancements.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type SeenAdvancements struct { diff --git a/pkg/protocol/packet/game/server/select_trade.go b/pkg/protocol/packet/game/server/select_trade.go index 8b3ffd0..e2ff5f6 100644 --- a/pkg/protocol/packet/game/server/select_trade.go +++ b/pkg/protocol/packet/game/server/select_trade.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type SelectTrade struct { diff --git a/pkg/protocol/packet/game/server/set_beacon.go b/pkg/protocol/packet/game/server/set_beacon.go index d4b55a6..7527150 100644 --- a/pkg/protocol/packet/game/server/set_beacon.go +++ b/pkg/protocol/packet/game/server/set_beacon.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type SetBeacon struct { diff --git a/pkg/protocol/packet/game/server/set_carried_item.go b/pkg/protocol/packet/game/server/set_carried_item.go index acd64c6..8de9291 100644 --- a/pkg/protocol/packet/game/server/set_carried_item.go +++ b/pkg/protocol/packet/game/server/set_carried_item.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type SetCarriedItem struct { diff --git a/pkg/protocol/packet/game/server/set_command_block.go b/pkg/protocol/packet/game/server/set_command_block.go index 51c1525..32b320d 100644 --- a/pkg/protocol/packet/game/server/set_command_block.go +++ b/pkg/protocol/packet/game/server/set_command_block.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/set_command_minecart.go b/pkg/protocol/packet/game/server/set_command_minecart.go index 4f744f4..451f5cd 100644 --- a/pkg/protocol/packet/game/server/set_command_minecart.go +++ b/pkg/protocol/packet/game/server/set_command_minecart.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type SetCommandMinecart struct { diff --git a/pkg/protocol/packet/game/server/set_creative_mode_slot.go b/pkg/protocol/packet/game/server/set_creative_mode_slot.go index af785a8..dc63255 100644 --- a/pkg/protocol/packet/game/server/set_creative_mode_slot.go +++ b/pkg/protocol/packet/game/server/set_creative_mode_slot.go @@ -1,8 +1,9 @@ package server import ( + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - "github.com/Tnze/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/set_jigsaw_block.go b/pkg/protocol/packet/game/server/set_jigsaw_block.go index cf36562..07199f4 100644 --- a/pkg/protocol/packet/game/server/set_jigsaw_block.go +++ b/pkg/protocol/packet/game/server/set_jigsaw_block.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/set_structure_block.go b/pkg/protocol/packet/game/server/set_structure_block.go index 45a3671..d7497be 100644 --- a/pkg/protocol/packet/game/server/set_structure_block.go +++ b/pkg/protocol/packet/game/server/set_structure_block.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/set_test_block.go b/pkg/protocol/packet/game/server/set_test_block.go index fbd3094..c699204 100644 --- a/pkg/protocol/packet/game/server/set_test_block.go +++ b/pkg/protocol/packet/game/server/set_test_block.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/sign_update.go b/pkg/protocol/packet/game/server/sign_update.go index ab16e0e..c407459 100644 --- a/pkg/protocol/packet/game/server/sign_update.go +++ b/pkg/protocol/packet/game/server/sign_update.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/swing.go b/pkg/protocol/packet/game/server/swing.go index c10e232..4532080 100644 --- a/pkg/protocol/packet/game/server/swing.go +++ b/pkg/protocol/packet/game/server/swing.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type Swing struct { diff --git a/pkg/protocol/packet/game/server/teleport_to_entity.go b/pkg/protocol/packet/game/server/teleport_to_entity.go index 24e8810..eaa318f 100644 --- a/pkg/protocol/packet/game/server/teleport_to_entity.go +++ b/pkg/protocol/packet/game/server/teleport_to_entity.go @@ -1,8 +1,9 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/test_instance_block_action.go b/pkg/protocol/packet/game/server/test_instance_block_action.go index 9b12ea3..80e65ed 100644 --- a/pkg/protocol/packet/game/server/test_instance_block_action.go +++ b/pkg/protocol/packet/game/server/test_instance_block_action.go @@ -1,9 +1,9 @@ package server import ( - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/game/server/use_item.go b/pkg/protocol/packet/game/server/use_item.go index 96ecf9a..ef1002e 100644 --- a/pkg/protocol/packet/game/server/use_item.go +++ b/pkg/protocol/packet/game/server/use_item.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type UseItem struct { diff --git a/pkg/protocol/packet/game/server/use_item_on.go b/pkg/protocol/packet/game/server/use_item_on.go index 355edd8..4bb36af 100644 --- a/pkg/protocol/packet/game/server/use_item_on.go +++ b/pkg/protocol/packet/game/server/use_item_on.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) //codec:gen diff --git a/pkg/protocol/packet/login/client/codecs.go b/pkg/protocol/packet/login/client/codecs.go index d85ae89..19646fe 100644 --- a/pkg/protocol/packet/login/client/codecs.go +++ b/pkg/protocol/packet/login/client/codecs.go @@ -5,7 +5,7 @@ package client import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *LoginCookieRequest) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/login/client/cookie_request.go b/pkg/protocol/packet/login/client/cookie_request.go index 7be005d..8f7bf2c 100644 --- a/pkg/protocol/packet/login/client/cookie_request.go +++ b/pkg/protocol/packet/login/client/cookie_request.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginCookieRequest struct { diff --git a/pkg/protocol/packet/login/client/custom_query.go b/pkg/protocol/packet/login/client/custom_query.go index 70148dc..b7131fe 100644 --- a/pkg/protocol/packet/login/client/custom_query.go +++ b/pkg/protocol/packet/login/client/custom_query.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginCustomQuery struct { diff --git a/pkg/protocol/packet/login/client/hello.go b/pkg/protocol/packet/login/client/hello.go index 55d0145..c7af273 100644 --- a/pkg/protocol/packet/login/client/hello.go +++ b/pkg/protocol/packet/login/client/hello.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginHello struct { diff --git a/pkg/protocol/packet/login/client/login_compression.go b/pkg/protocol/packet/login/client/login_compression.go index 1f32055..b750f16 100644 --- a/pkg/protocol/packet/login/client/login_compression.go +++ b/pkg/protocol/packet/login/client/login_compression.go @@ -1,6 +1,6 @@ package client -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginLoginCompression struct { diff --git a/pkg/protocol/packet/login/client/login_disconnect.go b/pkg/protocol/packet/login/client/login_disconnect.go index 0698751..77692af 100644 --- a/pkg/protocol/packet/login/client/login_disconnect.go +++ b/pkg/protocol/packet/login/client/login_disconnect.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/chat" - "github.com/Tnze/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/chat" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/login/client/login_finished.go b/pkg/protocol/packet/login/client/login_finished.go index 669e00d..1d81c9d 100644 --- a/pkg/protocol/packet/login/client/login_finished.go +++ b/pkg/protocol/packet/login/client/login_finished.go @@ -1,9 +1,10 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - "github.com/Tnze/go-mc/yggdrasil/user" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + "git.konjactw.dev/falloutBot/go-mc/yggdrasil/user" ) //codec:gen diff --git a/pkg/protocol/packet/login/client/packet.go b/pkg/protocol/packet/login/client/packet.go index cd05172..317bf50 100644 --- a/pkg/protocol/packet/login/client/packet.go +++ b/pkg/protocol/packet/login/client/packet.go @@ -1,8 +1,8 @@ package client import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ClientboundPacket interface { diff --git a/pkg/protocol/packet/login/server/codecs.go b/pkg/protocol/packet/login/server/codecs.go index 7bc9175..1bbbcab 100644 --- a/pkg/protocol/packet/login/server/codecs.go +++ b/pkg/protocol/packet/login/server/codecs.go @@ -5,7 +5,7 @@ package server import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *LoginCookieResponse) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/packet/login/server/cookie_response.go b/pkg/protocol/packet/login/server/cookie_response.go index 8a8ab4b..516440f 100644 --- a/pkg/protocol/packet/login/server/cookie_response.go +++ b/pkg/protocol/packet/login/server/cookie_response.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginCookieResponse struct { diff --git a/pkg/protocol/packet/login/server/custom_query_answer.go b/pkg/protocol/packet/login/server/custom_query_answer.go index f861e9b..741cb8e 100644 --- a/pkg/protocol/packet/login/server/custom_query_answer.go +++ b/pkg/protocol/packet/login/server/custom_query_answer.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginCustomQueryAnswer struct { diff --git a/pkg/protocol/packet/login/server/hello.go b/pkg/protocol/packet/login/server/hello.go index 1d034d0..a9b57ab 100644 --- a/pkg/protocol/packet/login/server/hello.go +++ b/pkg/protocol/packet/login/server/hello.go @@ -1,8 +1,9 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" "github.com/google/uuid" + + "git.konjactw.dev/falloutBot/go-mc/data/packetid" ) //codec:gen diff --git a/pkg/protocol/packet/login/server/key.go b/pkg/protocol/packet/login/server/key.go index 27e1597..8a4fa48 100644 --- a/pkg/protocol/packet/login/server/key.go +++ b/pkg/protocol/packet/login/server/key.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginKey struct { diff --git a/pkg/protocol/packet/login/server/login_acknowledged.go b/pkg/protocol/packet/login/server/login_acknowledged.go index 1df07db..6a8a51e 100644 --- a/pkg/protocol/packet/login/server/login_acknowledged.go +++ b/pkg/protocol/packet/login/server/login_acknowledged.go @@ -1,6 +1,6 @@ package server -import "github.com/Tnze/go-mc/data/packetid" +import "git.konjactw.dev/falloutBot/go-mc/data/packetid" //codec:gen type LoginLoginAcknowledged struct { diff --git a/pkg/protocol/packet/login/server/packet.go b/pkg/protocol/packet/login/server/packet.go index 3966541..6633556 100644 --- a/pkg/protocol/packet/login/server/packet.go +++ b/pkg/protocol/packet/login/server/packet.go @@ -1,8 +1,8 @@ package server import ( - "github.com/Tnze/go-mc/data/packetid" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/data/packetid" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ServerboundPacket interface { diff --git a/pkg/protocol/particle/codecs.go b/pkg/protocol/particle/codecs.go index 1ae3d7a..e83a271 100644 --- a/pkg/protocol/particle/codecs.go +++ b/pkg/protocol/particle/codecs.go @@ -5,7 +5,7 @@ package particle import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *Block) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/particle/particle.go b/pkg/protocol/particle/particle.go index 180e98c..d3c4ca6 100644 --- a/pkg/protocol/particle/particle.go +++ b/pkg/protocol/particle/particle.go @@ -3,7 +3,7 @@ package particle import ( "io" - pk "github.com/Tnze/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type ParticleData interface { diff --git a/pkg/protocol/particle/particles.go b/pkg/protocol/particle/particles.go index 45142ba..649eec2 100644 --- a/pkg/protocol/particle/particles.go +++ b/pkg/protocol/particle/particles.go @@ -3,8 +3,9 @@ package particle import ( "io" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) // BasicParticle for Particle Type Other diff --git a/pkg/protocol/slot/codecs.go b/pkg/protocol/slot/codecs.go index 99c48e3..cb78e92 100644 --- a/pkg/protocol/slot/codecs.go +++ b/pkg/protocol/slot/codecs.go @@ -6,7 +6,7 @@ import ( "errors" "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *AddedHashedComponent) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/slot/component.go b/pkg/protocol/slot/component.go index 1bd229f..84040b5 100644 --- a/pkg/protocol/slot/component.go +++ b/pkg/protocol/slot/component.go @@ -1,7 +1,7 @@ package slot import ( - pk "github.com/Tnze/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type Component interface { diff --git a/pkg/protocol/slot/display/recipe/codecs.go b/pkg/protocol/slot/display/recipe/codecs.go index 8dc6f3f..2c841ef 100644 --- a/pkg/protocol/slot/display/recipe/codecs.go +++ b/pkg/protocol/slot/display/recipe/codecs.go @@ -5,7 +5,7 @@ package recipe import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *Shapeless) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/slot/display/recipe/recipe_display.go b/pkg/protocol/slot/display/recipe/recipe_display.go index a837d50..3e51918 100644 --- a/pkg/protocol/slot/display/recipe/recipe_display.go +++ b/pkg/protocol/slot/display/recipe/recipe_display.go @@ -3,8 +3,9 @@ package recipe import ( "io" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot/display/slot" - pk "github.com/Tnze/go-mc/net/packet" ) type DisplayType int32 diff --git a/pkg/protocol/slot/display/slot/codecs.go b/pkg/protocol/slot/display/slot/codecs.go index 3fc04dd..b2911d0 100644 --- a/pkg/protocol/slot/display/slot/codecs.go +++ b/pkg/protocol/slot/display/slot/codecs.go @@ -5,7 +5,7 @@ package slot import ( "io" - "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/net/packet" ) func (c *Item) ReadFrom(r io.Reader) (n int64, err error) { diff --git a/pkg/protocol/slot/display/slot/slot_display.go b/pkg/protocol/slot/display/slot/slot_display.go index dc1a877..4dd387d 100644 --- a/pkg/protocol/slot/display/slot/slot_display.go +++ b/pkg/protocol/slot/display/slot/slot_display.go @@ -3,8 +3,9 @@ package slot import ( "io" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" + "git.konjactw.dev/patyhank/minego/pkg/protocol/slot" - pk "github.com/Tnze/go-mc/net/packet" ) type DisplayType int32 diff --git a/pkg/protocol/slot/item_stack.go b/pkg/protocol/slot/item_stack.go index 8c3431a..71d27eb 100644 --- a/pkg/protocol/slot/item_stack.go +++ b/pkg/protocol/slot/item_stack.go @@ -3,8 +3,8 @@ package slot import ( "io" - "github.com/Tnze/go-mc/level/item" - pk "github.com/Tnze/go-mc/net/packet" + "git.konjactw.dev/falloutBot/go-mc/level/item" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type Slot struct { diff --git a/pkg/protocol/slot/trade_item.go b/pkg/protocol/slot/trade_item.go index 4b11ec3..19bf63f 100644 --- a/pkg/protocol/slot/trade_item.go +++ b/pkg/protocol/slot/trade_item.go @@ -3,7 +3,7 @@ package slot import ( "io" - pk "github.com/Tnze/go-mc/net/packet" + pk "git.konjactw.dev/falloutBot/go-mc/net/packet" ) type TradeSlot struct {