-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/main/java/net/raphimc/viabedrock/protocol/packet/UnhandledPackets.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* This file is part of ViaBedrock - https://github.com/RaphiMC/ViaBedrock | ||
* Copyright (C) 2023-2024 RK_01/RaphiMC and contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package net.raphimc.viabedrock.protocol.packet; | ||
|
||
import com.viaversion.viaversion.protocols.v1_20_3to1_20_5.packet.ServerboundPackets1_20_5; | ||
import net.raphimc.viabedrock.protocol.BedrockProtocol; | ||
import net.raphimc.viabedrock.protocol.ClientboundBedrockPackets; | ||
|
||
public class UnhandledPackets { | ||
|
||
public static void register(final BedrockProtocol protocol) { | ||
protocol.cancelClientbound(ClientboundBedrockPackets.SET_HEALTH); // Seems to do nothing meaningful | ||
protocol.cancelClientbound(ClientboundBedrockPackets.CAMERA); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.PHOTO_TRANSFER); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.SHOW_PROFILE); | ||
protocol.cancelClientbound(ClientboundBedrockPackets.LAB_TABLE); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.EDUCATION_SETTINGS); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.EMOTE); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.CODE_BUILDER); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.EMOTE_LIST); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.CAMERA_SHAKE); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.PLAYER_FOG); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.EDU_URI_RESOURCE); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.SCRIPT_MESSAGE); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.LESSON_PROGRESS); // Not relevant (Education Edition) | ||
protocol.cancelClientbound(ClientboundBedrockPackets.CAMERA_PRESETS); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.CAMERA_INSTRUCTION); // Not possible in Java Edition | ||
protocol.cancelClientbound(ClientboundBedrockPackets.SET_HUD); // Not possible in Java Edition | ||
|
||
protocol.cancelServerbound(ServerboundPackets1_20_5.CHAT_ACK); | ||
protocol.cancelServerbound(ServerboundPackets1_20_5.CHAT_SESSION_UPDATE); | ||
protocol.cancelServerbound(ServerboundPackets1_20_5.CHUNK_BATCH_RECEIVED); | ||
protocol.cancelServerbound(ServerboundPackets1_20_5.COOKIE_RESPONSE); | ||
protocol.cancelServerbound(ServerboundPackets1_20_5.DEBUG_SAMPLE_SUBSCRIPTION); | ||
} | ||
|
||
} |