提供: Minecraft Modding Wiki
移動先: 案内検索
(ページの置換「このページは投稿・編集の練習用です。<br /> 自由に変更して頂いて構いませんが、不定期に内容は削除されますのでメモ代わ�...」)
(6人の利用者による、間の17版が非表示)
2行目: 2行目:
 
自由に変更して頂いて構いませんが、不定期に内容は削除されますのでメモ代わりには使用しないで下さい。<br />
 
自由に変更して頂いて構いませんが、不定期に内容は削除されますのでメモ代わりには使用しないで下さい。<br />
  
----
 
 
[http://www.minecraftforge.net/wiki/Forge_Events 翻訳元]
 
 
 
== Forge Events ==
 
 
<nowiki>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.</nowiki>
 
----
 
<nowiki> 新しいForge Event Bus systemなら、あらゆるイベントを扱うことが出来る。このイベントシステムの導入については、AtomicStryker's guide on How To Use Forge Eventsを読んで欲しい。
 
 The @ForgeSubscribe annotation(Forgeの自署注釈)は、イベントシステムのメソッドと、そのメゾットが受け取るパラメータ(引数)について書いてある。
 
 スーパークラスのパラメーター(引数)は、サブクラスイベントの全てをそのメソッドに受け取らせる。以下は、現在利用可能なイベントのリストである。但し、全てのサブクラスはそのスーパークラスの詳細に当然参照することが出来るので、このページはそのようなサブクラスの為のフィールドについては挙げていない。</nowiki>
 
----
 
 
 
'''Varsion'''
 
<nowiki>This event list is currently based on Minecraft Forge 4.0.0 build 200.</nowiki>
 
----
 
<nowiki>このイベントリストは現在Minecraft Forge 4.0.0 build 200に基づいている。</nowiki>
 
----
 
 
 
== 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
 
 
----
 
----

2017年2月17日 (金) 00:29時点における版

このページは投稿・編集の練習用です。
自由に変更して頂いて構いませんが、不定期に内容は削除されますのでメモ代わりには使用しないで下さい。