提供: Minecraft Modding Wiki
移動先: 案内検索

警告: ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。ログインまたはアカウントを作成すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。

この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 編集中の文章
3行目: 3行目:
  
 
----
 
----
編集楽しいー
+
 
//
+
[http://www.minecraftforge.net/wiki/Forge_Events 翻訳元]
 +
 
 +
 
 +
== 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<br>
 +
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.
 +
----
 +
 新しいForge Event Bus systemなら、あらゆるイベントを扱うことが出来る。このイベントシステムの導入については、AtomicStryker's guide on How To Use Forge Eventsを読んで欲しい。
 +
 The @ForgeSubscribe annotation(Forgeの自署注釈)は、イベントシステムのメソッドと、そのメゾットが受け取るパラメータ(引数)について書いてある。
 +
 スーパークラスのパラメーター(引数)は、サブクラスイベントの全てをそのメソッドに受け取らせる。以下は、現在利用可能なイベントのリストである。但し、全てのサブクラスはそのスーパークラスの詳細に当然参照することが出来るので、このページはそのようなサブクラスの為のフィールドについては挙げていない。
 +
----
 +
 
 +
 
 +
'''Varsion'''
 +
This event list is currently based on Minecraft Forge 4.0.0 build 200.
 +
----
 +
このイベントリストは現在Minecraft Forge 4.0.0 build 200に基づいている。
 +
----
 +
 
 +
 
 +
== 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
 +
----

Minecraft Modding Wikiへの投稿はすべて、他の投稿者によって編集、変更、除去される場合があります。 自分が書いたものが他の人に容赦なく編集されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください(詳細はMinecraft Modding Wiki:著作権を参照)。 著作権保護されている作品は、許諾なしに投稿しないでください!

このページを編集するには、下記の確認用の質問に回答してください (詳細):

取り消し 編集の仕方 (新しいウィンドウで開きます)