Class ConfigNetwork
java.lang.Object
net.ixdarklord.coolcatcore.internal.config.network.ConfigNetwork
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe startup values of every startup config that clients must match:{"mod:config": {path: value}}.static final recordThe server's values of a synced config, and whether the receiving player may edit them.static final recordThe values a player changed in a synced config.static final recordWhether the server took a player's changes, and what it rejected. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbroadcast(net.minecraft.server.MinecraftServer server, ConfigImpl config) static booleancanEdit(net.minecraft.server.level.ServerPlayer player, ConfigImpl config) Whether the player may change the config: the singleplayer host always may, others need its edit permission.static voidinit()static voidsendAll(net.minecraft.server.level.ServerPlayer player)
-
Method Details
-
init
public static void init() -
canEdit
Whether the player may change the config: the singleplayer host always may, others need its edit permission. -
sendAll
public static void sendAll(net.minecraft.server.level.ServerPlayer player) -
broadcast
-