9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

clean: remove old inheritance that no longer matters

This commit is contained in:
LoJoSho
2023-09-09 11:35:37 -05:00
parent 90caa23cd7
commit 28c466e342
2 changed files with 7 additions and 14 deletions

View File

@@ -1,13 +0,0 @@
package com.hibiscusmc.hmccosmetics.util.packets;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketContainer;
import org.bukkit.entity.Player;
public class BasePacket {
public static void sendPacket(Player player, PacketContainer packet) {
if (player == null) return;
ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false);
}
}

View File

@@ -1,6 +1,7 @@
package com.hibiscusmc.hmccosmetics.util.packets;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.wrappers.*;
import com.google.common.collect.Lists;
@@ -29,7 +30,7 @@ import java.util.Collections;
import java.util.List;
import java.util.UUID;
public class PacketManager extends BasePacket {
public class PacketManager {
public static void sendEntitySpawnPacket(
final @NotNull Location location,
@@ -550,4 +551,9 @@ public class PacketManager extends BasePacket {
}
return viewers;
}
public static void sendPacket(Player player, PacketContainer packet) {
if (player == null) return;
ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, null,false);
}
}