Skip to content

Instantly share code, notes, and snippets.

@FlyInMyEye
FlyInMyEye / NetworkHandler
Created June 9, 2025 14:53
Just forge channel init lol
private static final String PROTOCOL_VERSION = "1";
public static final SimpleChannel INSTANCE = NetworkRegistry.newSimpleChannel(
new ResourceLocation(GrapesEatingAnimation.MODID, "main"),
() -> PROTOCOL_VERSION,
PROTOCOL_VERSION::equals,
PROTOCOL_VERSION::equals
);