diff --git a/src/main/java/essentialaddons/feature/GameRuleNetworkHandler.java b/src/main/java/essentialaddons/feature/GameRuleNetworkHandler.java index 1c4d0ed..a653930 100644 --- a/src/main/java/essentialaddons/feature/GameRuleNetworkHandler.java +++ b/src/main/java/essentialaddons/feature/GameRuleNetworkHandler.java @@ -129,7 +129,7 @@ private void handleGameRuleSet(ServerPlayNetworkHandler handler, SetGameRulePayl ((IRule) rule).essentialaddons$ruleChanged(player); } - private record GameRuleHelloPayload(String brand, int version) implements CustomPayload { + public record GameRuleHelloPayload(String brand, int version) implements CustomPayload { public static final Id ID = CustomPayload.id("essential:game_rule_hello"); public static final PacketCodec CODEC = PacketCodec.of( (payload, buf) -> buf.writeString(payload.brand).writeInt(payload.version), @@ -142,7 +142,7 @@ public Id getId() { } } - private record SetGameRulePayload(String name, String value) implements CustomPayload { + public record SetGameRulePayload(String name, String value) implements CustomPayload { public static final Id ID = CustomPayload.id("essential:set_game_rule"); public static final PacketCodec CODEC = PacketCodec.of( (payload, buf) -> buf.writeString(payload.name).writeString(payload.value), @@ -155,7 +155,7 @@ public Id getId() { } } - private record GameRulesChangedPayload(NbtCompound compound) implements CustomPayload { + public record GameRulesChangedPayload(NbtCompound compound) implements CustomPayload { public static final Id ID = CustomPayload.id("essential:game_rules_changed"); public static final PacketCodec CODEC = PacketCodec.of( (payload, buf) -> buf.writeNbt(payload.compound), @@ -168,7 +168,7 @@ public Id getId() { } } - private record GameRulePermissionsPayload(boolean canUpdateGamerules) implements CustomPayload { + public record GameRulePermissionsPayload(boolean canUpdateGamerules) implements CustomPayload { public static final Id ID = CustomPayload.id("essential:game_rule_permissions"); public static final PacketCodec CODEC = PacketCodec.of( (payload, buf) -> buf.writeBoolean(payload.canUpdateGamerules),