提供: Minecraft Modding Wiki
移動先: 案内検索
(Forge Events)
(Forge Events)
3行目: 3行目:
 
With the new Forge Event Bus system, everything is done using events. For an introduction on how to use the event system, read <br>AtomicStryker's guide on How To Use Forge Events<br>
 
With the new Forge Event Bus system, everything is done using events. For an introduction on how to use the event system, read <br>AtomicStryker's guide on How To Use Forge Events<br>
 
The @ForgeSubscribe annotation subscribes a method to the event system, and the parameters of the method determines which events it receives.
 
The @ForgeSubscribe 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.<br>
 
A super class parameter will make the method also receive all subclass events. This is a list of events currently available.<br>

2012年10月20日 (土) 23:59時点における版

翻訳元ページ

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 @ForgeSubscribe 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 4.0.0 build 200.