diff --git a/src/main/java/net/neoforged/neoforge/network/handling/IConfigurationPayloadHandler.java b/src/main/java/net/neoforged/neoforge/network/handling/IConfigurationPayloadHandler.java index 957122a334a..16e0b459805 100644 --- a/src/main/java/net/neoforged/neoforge/network/handling/IConfigurationPayloadHandler.java +++ b/src/main/java/net/neoforged/neoforge/network/handling/IConfigurationPayloadHandler.java @@ -18,4 +18,14 @@ public interface IConfigurationPayloadHandler { * @param payload The payload. */ void handle(ConfigurationPayloadContext context, T payload); + + /** + * Creates a handler that does nothing. + * + * @return The handler. + * @param The type of payload. + */ + static IConfigurationPayloadHandler noop() { + return (context, payload) -> {}; + } }