package com.example; import net.minecraftforge.fml.common.eventhandler.Cancelable; import net.minecraftforge.fml.common.eventhandler.Event; // If you don't want your event to be cancellable, remove this annotation @Cancelable public class CheeseEvent extends Event { public final int totalCheeseCount; public CheeseEvent(int totalCheeseCount) { this.totalCheeseCount = totalCheeseCount; } }