2024-03-07 22:22:39 -05:00
|
|
|
package noppes.npcs.controllers;
|
|
|
|
|
|
|
|
|
|
import io.netty.buffer.ByteBuf;
|
2025-01-29 13:20:04 -05:00
|
|
|
import kamkeel.npcs.addon.DBCAddon;
|
2024-03-07 22:22:39 -05:00
|
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
|
import net.minecraft.nbt.NBTTagList;
|
2024-03-28 18:16:17 -04:00
|
|
|
import noppes.npcs.NoppesUtilServer;
|
2024-03-07 22:22:39 -05:00
|
|
|
import noppes.npcs.Server;
|
2025-01-24 00:29:11 -05:00
|
|
|
import noppes.npcs.config.ConfigMain;
|
2024-03-07 22:22:39 -05:00
|
|
|
import noppes.npcs.constants.EnumPacketClient;
|
|
|
|
|
|
|
|
|
|
public class SyncController {
|
|
|
|
|
|
2025-01-24 00:29:11 -05:00
|
|
|
public static void syncConfigs(EntityPlayerMP player){
|
|
|
|
|
NBTTagCompound nbtTagCompound = new NBTTagCompound();
|
|
|
|
|
nbtTagCompound.setBoolean("Profiles", true);
|
|
|
|
|
Server.sendData(player, EnumPacketClient.SYNC_CONFIG, nbtTagCompound);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void receiveConfigs(NBTTagCompound compound){
|
|
|
|
|
ConfigMain.EnableProfiles = compound.getBoolean("Profiles");
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-07 22:22:39 -05:00
|
|
|
}
|