Add all Client Packets

This commit is contained in:
Kam committed 2025-01-28 15:49:17 -05:00
1 parent ec133ce74c
commit 8a2a3e1ac3
63 files changed
+2678 -1

No files matched your search

@@ -0,0 +1,37 @@
package kamkeel.network.packets.client;
import io.netty.buffer.ByteBuf;
import kamkeel.network.AbstractPacket;
import kamkeel.network.PacketChannel;
import kamkeel.network.PacketHandler;
import kamkeel.network.enums.EnumClientPacket;
import net.minecraft.entity.player.EntityPlayer;
import noppes.npcs.client.controllers.ScriptSoundController;
import java.io.IOException;
public final class StopSoundsPacket extends AbstractPacket {
public static final String packetName = "Client|StopSounds";
public StopSoundsPacket() {}
@Override
public Enum getType() {
return EnumClientPacket.STOP_SOUNDS;
}
@Override
public PacketChannel getChannel() {
return PacketHandler.CLIENT_PACKET;
}
@Override
public void sendData(ByteBuf out) throws IOException {
// TODO: Send Packet
}
@Override
public void receiveData(ByteBuf in, EntityPlayer player) throws IOException {
ScriptSoundController.Instance.stopAllSounds();
}
}