Files
CustomNPC-Plus/src/main/java/kamkeel/network/packets/client/StopSoundsPacket.java
T
2025-01-28 15:49:17 -05:00

38 lines
1004 B
Java

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();
}
}