2024-04-26 17:09:37 +02:00
|
|
|
package com.minelittlepony.unicopia;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
2024-09-29 22:37:44 +02:00
|
|
|
import com.minelittlepony.unicopia.util.serialization.PacketCodecUtils;
|
|
|
|
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
|
|
import net.minecraft.network.codec.PacketCodec;
|
|
|
|
|
2024-04-26 17:09:37 +02:00
|
|
|
public record SyncedConfig (
|
|
|
|
Set<String> wantItNeedItExcludeList,
|
|
|
|
Set<String> dimensionsWithoutAtmosphere) {
|
2024-09-29 22:37:44 +02:00
|
|
|
public static final PacketCodec<ByteBuf, SyncedConfig> PACKET_CODEC = PacketCodec.tuple(
|
|
|
|
PacketCodecUtils.STRING_SET, SyncedConfig::wantItNeedItExcludeList,
|
|
|
|
PacketCodecUtils.STRING_SET, SyncedConfig::dimensionsWithoutAtmosphere,
|
|
|
|
SyncedConfig::new
|
|
|
|
);
|
2024-04-26 17:09:37 +02:00
|
|
|
}
|