アクセス状況

  • 0
  • 8
  • 15
  • 8,608

カウント開始:2014年9月21日
カウンター+75,945が開設当初からの訪問者数


since 2014/9/21

Sponge Events(API5.0)

logo-spongie

ここではSpongePluginで使用可能はイベントを紹介します。基本的に説明を全部埋めるつもりも無いので、気が向いたら更新します。プラグイン自体の作成はSponge Pluginで解説してます。

目次

実績関連イベント
(org.spongepowered.api.event.achievement)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/achievement/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
GrantAchievementEvent Doc
GrantAchievementEvent.TargetPlayer Doc

アクション関連イベント
(org.spongepowered.api.event.action)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/action/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
CollideEvent Doc
CollideEvent.Impact Doc
FishingEvent Doc
FishingEvent.HookEntity Doc
FishingEvent.Start Doc
FishingEvent.Stop Doc
InteractEvent Doc
LightningEvent Doc
LightningEvent.Post Doc
LightningEvent.Pre Doc
LightningEvent.Strike Doc
SleepingEvent Doc
SleepingEvent.Finish Doc
SleepingEvent.Post Doc
SleepingEvent.Pre Doc
SleepingEvent.Tick Doc

ブロック関連イベント
(org.spongepowered.api.event.block)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/block/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ChangeBlockEvent Doc
ChangeBlockEvent.Break ブロックが壊された時 BreakやPlace →Post →NotifyNeighborBlockEventの順に発生します。 Doc
ChangeBlockEvent.Decay ブロックが腐敗した時 Doc
ChangeBlockEvent.Grow ブロックが成長した時 Doc
ChangeBlockEvent.Modify ブロックが修正(変更)された時 Doc
ChangeBlockEvent.Place ブロックが設置された時 BreakやPlace →Post →NotifyNeighborBlockEventの順に発生します。 Doc
ChangeBlockEvent.Post ブロックが変化した時 BreakやPlace →Post →NotifyNeighborBlockEventの順に発生します。 Doc
ChangeBlockEvent.Pre 水ブロックが動く前に発生。 恐らく溶岩など流体ブロックのみ。通常ブロックの設置前には発生しません。 Doc
CollideBlockEvent エンティティがブロックにぶつかった場合に発生 感圧版を踏んだときとか。 Doc
CollideBlockEvent.Impact Doc
InteractBlockEvent Doc
InteractBlockEvent.Primary Doc
InteractBlockEvent.Primary.MainHand (左クリック)メインハンドでブロックを叩いたときに発生します。 何も無くてもAirブロックを叩いたことになるので発生 Doc
InteractBlockEvent.Primary.OffHand Doc
InteractBlockEvent.Secondary Doc
InteractBlockEvent.Secondary.MainHand (右クリック)メインハンドでブロックを叩いたときに発生します。 ドアの開閉、チェストの開閉、スイッチ操作などの右クリックの操作大半をキャンセルしたい時は、これをキャンセルすれば実現できる。 Doc
InteractBlockEvent.Secondary.OffHand Doc
NotifyNeighborBlockEvent 近隣ブロックに変化が発生した時? BreakやPlace→Post→NotifyNeighborBlockEventの順に発生します Doc
TargetBlockEvent Doc
TickBlockEvent.Random Doc
TickBlockEvent.Scheduled Doc
TickBlockEvent Doc

ブロック(タイルエンティティ)関連イベント
(org.spongepowered.api.event.block.tileentity)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/block/tileentity/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
BrewingEvent Doc
BrewingEvent.Finish Doc
BrewingEvent.Interrupt Doc
BrewingEvent.Start Doc
BrewingEvent.Tick Doc
ChangeSignEvent Doc
SmeltEvent Doc
SmeltEvent.ConsumeFuel Doc
SmeltEvent.Finish Doc
SmeltEvent.Interrupt Doc
SmeltEvent.Start Doc
SmeltEvent.Tick Doc
TargetTileEntityEvent Doc

コマンド関連イベント
(org.spongepowered.api.event.command)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/command/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
SendCommandEvent コマンド入力時に発生します コマンドがエラーでも発生します Doc
TabCompleteEvent Doc
TabCompleteEvent.Chat Doc
TabCompleteEvent.Command Doc

データホルダー?関連イベント
(org.spongepowered.api.event.data)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/data/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ChangeDataHolderEvent Doc
ChangeDataHolderEvent.ValueChange Doc

経済関連イベント
(org.spongepowered.api.event.economy)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/economy/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
EconomyTransactionEvent Doc

エンティティ関連イベント
(org.spongepowered.api.event.entity)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
AffectEntityEvent Doc
AttackEntityEvent 攻撃時 攻撃時は、InteractEntityEvent → AttackEntityEvent → DamageEntityEventの順で発生。 Doc
BreedEntityEvent Doc
BreedEntityEvent.Breed Doc
BreedEntityEvent.FindMate Doc
ChangeEntityEquipmentEvent Doc
ChangeEntityEquipmentEvent.TargetHumanoid Doc
ChangeEntityEquipmentEvent.TargetLiving Doc
ChangeEntityEquipmentEvent.TargetPlayer Doc
ChangeEntityExperienceEvent Doc
ChangeEntityPotionEffectEvent Doc
ChangeEntityPotionEffectEvent.Expire Doc
ChangeEntityPotionEffectEvent.Gain Doc
ChangeEntityPotionEffectEvent.Remove Doc
CollideEntityEvent エンティティ同士が衝突したときに発生 Doc
CollideEntityEvent.Impact 放った矢がエンティティにぶつかった時など Doc
ConstructEntityEvent Doc
ConstructEntityEvent.Post Doc
ConstructEntityEvent.Pre エンティティが生成される前に発生 Doc
DamageEntityEvent エンティティがダメージを受けたときに発生  攻撃時は、InteractEntityEvent → AttackEntityEvent → DamageEntityEventの順で発生。 Doc
DestructEntityEvent Doc
DestructEntityEvent.Death エンティティが死亡した時に発生 体力の無いエンティティ(額縁とか)が削除された場合には発生しません。体力を持つエンティティ限定。 Doc
ExpireEntityEvent Doc
ExpireEntityEvent.TargetItem Doc
HarvestEntityEvent Doc
HarvestEntityEvent.TargetHumanoid Doc
HarvestEntityEvent.TargetLiving Doc
HarvestEntityEvent.TargetPlayer Doc
HealEntityEvent Doc
IgniteEntityEvent Doc
InteractEntityEvent エンティティをクリックした時に発生 Doc
InteractEntityEvent.Primary エンティティをクリックした時に発生(左クリック) Doc
InteractEntityEvent.Primary.MainHand エンティティをクリックした時に発生(メインハンドで左クリック) Doc
InteractEntityEvent.Primary.OffHand エンティティをクリックした時に発生(オフハンドで左クリック) Doc
InteractEntityEvent.Secondary エンティティをクリックした時に発生(右クリック) Doc
InteractEntityEvent.Secondary.MainHand エンティティをクリックした時に発生(メインハンドで右クリック) Doc
InteractEntityEvent.Secondary.OffHand エンティティをクリックした時に発生(オフハンドで右クリック) Doc
LeashEntityEvent Doc
MoveEntityEvent エンティティが動いた時。 プレイヤーが歩いてる時などに常に発生。 Doc
MoveEntityEvent.Teleport エンティティがテレポートした時 Doc
MoveEntityEvent.Teleport.Portal Doc
RideEntityEvent Doc
RideEntityEvent.Dismount Doc
RideEntityEvent.Mount Doc
SpawnEntityEvent エンティティが出現した時 額縁や絵画を貼る時もこれ Doc
SpawnEntityEvent.ChunkLoad チャンク読み込みに伴うエンティティーの出現時 Doc
SpawnEntityEvent.Custom Doc
SpawnEntityEvent.Spawner Doc
TameEntityEvent Doc
TargetEntityEvent Doc
UnleashEntityEvent Doc

エンティティAI関連イベント
(org.spongepowered.api.event.entity.ai)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/ai/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
AITaskEvent Doc
AITaskEvent.Add エンティティの移動先が決定(追加)された時に発生。 Doc
AITaskEvent.Remove エンティティの移動先が削除された時に発生。 Doc

爆発関連イベント
(org.spongepowered.api.event.entity.explosive)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/explosive/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
DefuseExplosiveEvent Doc
DefuseExplosiveEvent.Post Doc
DefuseExplosiveEvent.Pre Doc
DetonateExplosiveEvent 爆発時(爆発直後) 爆発時は、爆発した瞬間からDetonateExplosiveEvent → ExplosionEvent.Pre → ExplosionEvent.Detonate → ExplosionEvent.Postが発生。
クリーパの場合はエンティティ名としてcreeper。TNTの場合はprimedtntが取れる。プレイヤーが点火した場合はプレイヤー名が取れるが、クリーパの場合はプレイヤー名は取れない。
Doc
PrimeExplosiveEvent Doc
PrimeExplosiveEvent.Post Doc
PrimeExplosiveEvent.Pre Doc
TargetExplosiveEvent Doc
TargetFusedExplosiveEvent Doc

アイテムエンティティ関連イベント
(org.spongepowered.api.event.entity.item)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/item/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ItemMergeItemEvent Doc
TargetItemEvent Doc

エンティティリビング?関連イベント
(org.spongepowered.api.event.entity.living)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/living/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
TargetAgentEvent Doc
TargetLivingEvent Doc

ヒューマンエンティティ関連イベント
(org.spongepowered.api.event.entity.living.humanoid)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/living/humanoid/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
AnimateHandEvent  クリック時などの手が動いたタイミング Doc
ChangeGameModeEvent Doc
ChangeGameModeEvent.TargetPlayer Doc
ChangeLevelEvent Doc
ChangeLevelEvent.TargetPlayer Doc
HandInteractEvent Doc
TargetHumanoidEvent Doc

プレイヤー関連イベント
(org.spongepowered.api.event.entity.living.humanoid.player)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/living/humanoid/player/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
KickPlayerEvent Doc
PlayerChangeClientSettingsEvent Doc
ResourcePackStatusEvent Doc
RespawnPlayerEvent Doc
TargetPlayerEvent Doc

プロジェクタイル(発射体)関連イベント
(org.spongepowered.api.event.entity.projectile)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/entity/projectile/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
LaunchProjectileEvent Doc
TargetProjectileEvent Doc

ゲーム関連イベント
(org.spongepowered.api.event.game)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/game/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
GameReloadEvent 「/sponge plugins reload プラグイン名」 などでプラグインを再読み込みした時に発生。 Doc

ライフサイクル関連イベント
(org.spongepowered.api.event.game.state)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/game/state/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
GameConstructionEvent 初期化イベント(1)プラグインロード直後に発生 Doc
GamePreInitializationEvent 初期化イベント(2)デフォルトロガーなどの割り当て後に発生 Doc
GameInitializationEvent 初期化イベント(3)プラグインの初期化が推奨されているタイミングで発生 Doc
GamePostInitializationEvent 初期化イベント(4)プラグイン起動前にAPI受け入れ準備を完了させるタイミングで発生 Doc
GameLoadCompleteEvent 初期化イベント(5)プラグインの初期化に必要な残処理を行うタイミングで発生。 Doc
GameAboutToStartServerEvent 実行中イベント(起動1) Doc
GameStartingServerEvent 実行中イベント(起動2) Doc
GameStartedServerEvent 実行中イベント(起動3) Doc
GameStoppingServerEvent 実行中イベント(停止1) Doc
GameStoppedServerEvent 実行中イベント(停止2) Doc
GameStoppedEvent Doc
GameStoppingEvent Doc
GameStateEvent Doc

インベントリ関連イベント
(org.spongepowered.api.event.item.inventory)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/item/inventory/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
AffectItemStackEvent Doc
AffectSlotEvent Doc
ChangeInventoryEvent  インベントリ内のアイテムの配置に何かしらの変化が発生した場合。 event.getTransactions().get(0).getOriginal()が変更前、get(1).getOriginal()変更後のアイテム Doc
ChangeInventoryEvent.Equipment Doc
ChangeInventoryEvent.Held ホイールなどで手持ちのアイテムを持ち替えたとき Doc
ChangeInventoryEvent.Pickup アイテムを拾ったときに発生 Doc
ChangeInventoryEvent.Transfer Doc
ClickInventoryEvent インベントリ内をクリックした場合。 event.getCursorTransaction().getOriginal()及びgetFinal()でクリック前/クリック後のアイテムを取得できる。
アイテムが無くても発生するけど、アイテムが置ける場所以外でイベントは発生しない
Doc
ClickInventoryEvent.Creative Doc
ClickInventoryEvent.Double インベントリ内のアイテムをダブルクリックしたとき  ダブルクリックの一回目のクリックでも別のイベントが発生します Doc
ClickInventoryEvent.Drag Doc
ClickInventoryEvent.Drag.Primary Doc
ClickInventoryEvent.Drag.Secondary Doc
ClickInventoryEvent.Drop Doc
ClickInventoryEvent.Drop.Full Doc
ClickInventoryEvent.Drop.Outside Doc
ClickInventoryEvent.Drop.Outside.Primary Doc
ClickInventoryEvent.Drop.Outside.Secondary Doc
ClickInventoryEvent.Drop.Single Doc
ClickInventoryEvent.Middle Doc
ClickInventoryEvent.NumberPress Doc
ClickInventoryEvent.Primary 左クリックでインベントリ内をクリックしたとき インベントリ内のアイテムを取ったり置いたりした時に発生。 Doc
ClickInventoryEvent.Secondary 右クリックでアイテムをクリックしたとき Doc
ClickInventoryEvent.Shift Doc
ClickInventoryEvent.Shift.Primary SHIFT+左クリックでアイテムをクリックしたとき Doc
ClickInventoryEvent.Shift.Secondary SHIFT+右クリックでアイテムをクリックしたとき Doc
DropItemEvent Doc
DropItemEvent.Custom Doc
DropItemEvent.Destruct Doc
DropItemEvent.Dispense Qキーなどでアイテムを捨てた時などに発生 Pre→Dispenseの順に発生する Doc
DropItemEvent.Pre Qキーなどでアイテムを捨てた時などに発生 Doc
InteractInventoryEvent Doc
InteractInventoryEvent.Close インベントリ、チェストなどを閉じたときに発生。 Doc
InteractInventoryEvent.Open インベントリ、チェストなどを開いたときに発生。 Doc
InteractItemEvent Doc
InteractItemEvent.Primary Doc
InteractItemEvent.Primary.MainHand Doc
InteractItemEvent.Primary.OffHand Doc
InteractItemEvent.Secondary Doc
InteractItemEvent.Secondary.MainHand Doc
InteractItemEvent.Secondary.OffHand Doc
TargetContainerEvent Doc
TargetInventoryEvent Doc
UseItemStackEvent Doc
UseItemStackEvent.Finish Doc
UseItemStackEvent.Replace Doc
UseItemStackEvent.Reset Doc
UseItemStackEvent.Start Doc
UseItemStackEvent.Stop Doc
UseItemStackEvent.Tick Doc

メッセージ関連イベント
(org.spongepowered.api.event.message)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/message/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
MessageChannelEvent Doc
MessageChannelEvent.Chat Doc
MessageEvent Doc

ネットワーク接続関連イベント
(org.spongepowered.api.event.network)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/network/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
BanIpEvent Doc
ChannelRegistrationEvent Doc
ChannelRegistrationEvent.Register ログイン時は、ChannelRegistrationEvent.Register →ClientConnectionEvent.Login →ClientConnectionEvent.Joinの順 Doc
ChannelRegistrationEvent.Unregister Doc
ClientConnectionEvent ログイン・ログアウト時の処理 Doc
ClientConnectionEvent.Auth クライアントがサーバーに対して認証しようとしたときに非同期的に呼び出されます。 Doc
ClientConnectionEvent.Disconnect プレイヤーがゲームから切断されたとき ログアウト時に発生 Doc
ClientConnectionEvent.Join プレイヤーが最初の接続の後、初めてゲームワールドに出現する時 ログイン時は、ChannelRegistrationEvent.Register →ClientConnectionEvent.Login →ClientConnectionEvent.Joinの順 Doc
ClientConnectionEvent.Login クライアントが認証され、サーバーにログインしようとした後 ログイン時は、ChannelRegistrationEvent.Register →ClientConnectionEvent.Login →ClientConnectionEvent.Joinの順 Doc
PardonIpEvent Doc

リモートコンソール関連イベント
(org.spongepowered.api.event.network.rcon)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/network/rcon/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
RconConnectionEvent Doc
RconConnectionEvent.Connect Doc
RconConnectionEvent.Disconnect Doc
RconConnectionEvent.Login Doc

サーバ関連イベント
(org.spongepowered.api.event.server)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/server/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ClientPingServerEvent クライアント側のサーバ一覧にサーバが表示された時 ※プレイヤーはログインしていない Doc

サーバクエリ関連イベント
(org.spongepowered.api.event.server.query)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/server/query/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
QueryServerEvent Doc
QueryServerEvent.Basic Doc
QueryServerEvent.Full Doc

サービス関連イベント
(org.spongepowered.api.event.service)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/service/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ChangeServiceProviderEvent Doc

統計関連イベント
(org.spongepowered.api.event.statistic)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/statistic/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ChangeStatisticEvent Doc
ChangeStatisticEvent.TargetPlayer Doc

ユーザ関連イベント
(org.spongepowered.api.event.user)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/user/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
BanUserEvent Doc
BanUserEvent.TargetPlayer Doc
PardonUserEvent Doc
PardonUserEvent.TargetPlayer Doc
TargetUserEvent Doc

ワールド関連イベント
(org.spongepowered.api.event.world)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/world/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ChangeWorldGameRuleEvent Doc
ChangeWorldWeatherEvent ワールドの天気が変化した時に発生 Doc
ConstructPortalEvent Doc
ConstructWorldPropertiesEvent Doc
ExplosionEvent DetonateExplosiveEventを参照。キャンセルすると、エンティティ、ブロックへのダメージ、爆発エフェクトがすべて出ない。TNTも失われない。 Doc
ExplosionEvent.Detonate DetonateExplosiveEventを参照。キャンセルすると、ダメージもブロック破壊も起きないが、爆発エフェクトは出る。 Doc
ExplosionEvent.Post DetonateExplosiveEventを参照。キャンセルすると、爆発エフェクトは出るし、近くのエンティティもダメージを受けるが、ブロックはダメージを受けない。 Doc
ExplosionEvent.Pre DetonateExplosiveEventを参照。キャンセルすると、エンティティ、ブロックへのダメージ、爆発エフェクトがすべて出ないが、TNTは失われる。 Doc
GenerateChunkEvent Doc
GenerateChunkEvent.Post Doc
GenerateChunkEvent.Pre Doc
LoadWorldEvent Doc
SaveWorldEvent Doc
SaveWorldEvent.Post ワールドセーブ時に発生 Pre →Postの順 Doc
SaveWorldEvent.Pre ワールドセーブ時に発生 Pre →Postの順 Doc
TargetWorldEvent Doc
UnloadWorldEvent Doc

チャンク関連イベント
(org.spongepowered.api.event.world.chunk)

JavaDoc(https://jd.spongepowered.org/5.0.0/org/spongepowered/api/event/world/chunk/package-frame.html)

イベントクラス 発生タイミング 備考 JavaDoc
ForcedChunkEvent Doc
LoadChunkEvent Doc
PopulateChunkEvent Doc
PopulateChunkEvent.Populate Doc
PopulateChunkEvent.Post Doc
PopulateChunkEvent.Pre Doc
TargetChunkEvent Doc
UnforcedChunkEvent Doc
UnloadChunkEvent チャンクがアンロードされたとき プレイヤーがそのチャンクから離れたりログアウトすると程なくして発生 Doc

コメントを残す

これらのHTMLタグが利用可能です

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Time limit is exhausted. Please reload CAPTCHA.

目次