refactor: make packetReceived listeners private

Intelligent IDEA Replacing Feature.
This commit is contained in:
ChomeNS
2025-03-31 16:55:52 +07:00
parent dddead69ba
commit bb0900eeb6
13 changed files with 37 additions and 37 deletions

View File

@@ -84,7 +84,7 @@ public class ChatPlugin extends Bot.Listener {
else if (packet instanceof ClientboundRegistryDataPacket t_packet) packetReceived(t_packet);
}
public void packetReceived (ClientboundSystemChatPacket packet) {
private void packetReceived (ClientboundSystemChatPacket packet) {
final Component component = packet.getContent();
if (
@@ -169,7 +169,7 @@ public class ChatPlugin extends Bot.Listener {
);
}
public void packetReceived (ClientboundPlayerChatPacket packet) {
private void packetReceived (ClientboundPlayerChatPacket packet) {
final UUID senderUUID = packet.getSender();
final PlayerEntry entry = bot.players.getEntry(senderUUID);
@@ -208,7 +208,7 @@ public class ChatPlugin extends Bot.Listener {
}
}
public void packetReceived (ClientboundDisguisedChatPacket packet) {
private void packetReceived (ClientboundDisguisedChatPacket packet) {
final Component component = packet.getMessage();
PlayerMessage parsedFromMessage = null;