donate PaySafe
DONATIONS
Events News
Forge Events
With the new Forge Event Bus system, everything is done using events. For an introduction on how to use the event system, read AtomicStryker's guide on How To Use Forge Events
The @SubscribeEvent annotation subscribes a method to the event system, and the parameters of the method determines which events it receives.
A super class parameter will make the method also receive all subclass events. This is a list of events currently available.
Notice that all sub classes will of course have access to the properties of their super class, thus this page will not list those as fields for the sub class.
Version
This event list is currently based on Minecraft Forge 10.3.0 build 1208.
CommandEvent
Called when a command is sent.
Fields:
ICommand command - command that was sent, the word typed after / in the Minecraft chat, or the first word typed in the console.
ICommandSender sender - sender of the command.
String[] parameters - parameters send with the command, all words after the first split by space.
Throwable exception - an exception that will be thrown if the event is cancelled.


