Spigot Event List

Spigot Event List

プラットフォーム

AbstractChatEvent

プレイヤーのチャットイベントの抽象基底クラス。

An abstract implementation of a chat event, handling shared logic.

AnvilDamagedEvent

使用したことで金床が損傷する時に呼び出される。

Called when an anvil is damaged from being used

AnvilTakeResultEvent

金床から結果アイテムを取り出す時に呼び出される。

Called when a player takes the result item out of an anvil

AnvilUpdateResultEvent

金床のスロットが変化し、結果スロットが更新される時に呼び出される。

Called when anvil slots change, triggering the result slot to be updated

AreaEffectCloudApplyEvent

AreaEffectCloud の効果が付与される時に呼び出される。5ティック毎に1回発生する。

Called when a lingering potion applies it's effects. Happens once every 5 ticks

ArrowBodyCountChangeEvent

エンティティの体に刺さっている矢の本数が変化する時に呼び出される。

Called when an arrow enters or exists an entity's body.

AsyncChatCommandDecorateEvent

コマンドを介したチャットコンポーネントをサーバーが装飾するときに呼び出される。

@Experimental

実験段階。

AsyncChatDecorateEvent

チャットコンポーネントをサーバーが装飾するときに呼び出される。

This event is fired when the server decorates a component for chat purposes. This is called before AsyncChatEvent and the other chat events. It is recommended that you modify the message here, and use the chat events for modifying receivers and later the chat type. If you want to keep the message as "signed" for the clients who get it, be sure to include the entire original message somewhere in the final message. See AsyncChatCommandDecorateEvent for the decoration of messages sent via commands

@Experimental

実験段階。

AsyncChatEvent

プレイヤーがサーバーへチャットメッセージを送信した時に呼び出される。発火のきっかけにより同期または非同期で実行されるため、isAsynchronous() を確認する。

An event fired when a Player sends a chat message to the server. This event will sometimes fire synchronously, depending on how it was triggered. If a player is the direct cause of this event by an incoming packet, this event will be asynchronous. If a plugin triggers this event by compelling a player to chat, this event will be synchronous. Care should be taken to check Event.isAsynchronous() and treat the event appropriately.

AsyncEvent

非同期処理の結果を待つイベントの基底クラス。

Represents an event which depends on the result of asynchronous operations.

AsyncPlayerChatEvent

プレイヤーがチャットした時に呼び出される。受信パケットが原因なら非同期、プラグインによる発言が原因なら同期で実行されるため、isAsynchronous() を確認する。

This event will sometimes fire synchronously, depending on how it was triggered. The constructor provides a boolean to indicate if the event was fired synchronously or asynchronously. When asynchronous, this event can be called from any thread, sans the main thread, and has limited access to the API. If a player is the direct cause of this event by an incoming packet, this event will be asynchronous. If a plugin triggers this event by compelling a player to chat, this event will be synchronous. Care should be taken to check Event.isAsynchronous() and treat the event appropriately.

AsyncPlayerChatPreviewEvent

チャットプレビューの表示を整形するために使われていたイベント。対応する AsyncPlayerChatEvent と同じ書式を使う仕様だったが、チャットプレビュー機能はすでに削除されている。

Used to format chat for chat preview. If this event is used, then the result of the corresponding AsyncPlayerChatEvent must be formatted in the same way.

@Deprecated

実験段階。

AsyncPlayerConnectionConfigureEvent

プレイヤーコネクションの構成完了後、プレイヤーがワールドに入る前に呼び出される。これは、プレイヤーコネクションの構成を可能にするためのイベントで、非同期でプレイヤーコネクションの構成コードを実行できる。

An event that allows you to configure the player. This is async and allows you to run configuration code on the player. Once this event has finished execution, the player connection will continue. This occurs after configuration, but before the player has entered the world.

AsyncPlayerPreLoginEvent

プレイヤーがログインを試みる時に、メインスレッドとは別のスレッドで呼び出される。

Stores details for players attempting to log in. This event is asynchronous, and not run using main thread.

AsyncPlayerSendCommandsEvent

クライアントへ利用可能なコマンドを知らせるため、プレイヤー用の Brigadier コマンドツリーが生成される時に呼び出される。非同期と同期で二度発火する場合があるため、isAsynchronous() と hasFiredAsync() を確認する。

Fired any time a Brigadier RootCommandNode is generated for a player to inform the client of commands. You may manipulate this CommandNode to change what the client sees. This event may fire on login, world change, and permission rebuilds, by plugin request, and potentially future means. This event will fire before PlayerCommandSendEvent, so no filtering has been done by other plugins yet. WARNING: This event will potentially (and most likely) fire twice! Once for Async, and once again for Sync. It is important that you check event.isAsynchronous() and event.hasFiredAsync() to ensure you only act once. If for some reason we are unable to send this asynchronously in the future, only the sync method will fire. Your logic should look like this: if (event.isAsynchronous() || !event.hasFiredAsync()) { // do stuff } If your logic is not safe to run asynchronously, only react to the synchronous version. This is a draft/experimental API and is subject to change.

@Experimental

実験段階。

AsyncPlayerSendSuggestionsEvent

補完をクライアントに送信する時に呼び出される。

Called when sending Suggestions to the client. Will be called asynchronously if a plugin marks the AsyncTabCompleteEvent event handled asynchronously, otherwise called synchronously. If the suggestions are empty after this event has been called, nothing will be sent to the client.

AsyncPlayerSpawnLocationEvent

サーバー参加時や再設定時にプレイヤーのスポーン地点を選ぶために呼び出される。ハンドラーの完了とスポーン地点の読み込みを待つ間、プレイヤーは設定フェーズに留まる。

Called when selecting a player's spawn location (i.e. joining the server or reconfiguring). The player will be kept in the configuration phase until all event handlers return and the spawn location is loaded.

AsyncServerDataFixerRemoveBlockEntityEvent

現在のバージョンに存在しない種類のブロックエンティティを、チャンク読み込み中にデータフィクサーが削除する時に呼び出される。名前に Async が付いていても、読み込み処理を行うワーカーまたはメインスレッドで実行されるため、重い処理やブロッキング処理は避ける。

This event is emitted by the server when the data fixer is removing a block entity associated with a block due to the block entity type no longer existing in this minecraft version. Notable examples include the removal of the bed block entity in 26.2. WARNING: While this event is prefixed with 'Async' it is executed as part of the chunk loading process. It may hence either execute on the chunk loading worker threads or the servers main thread, if a chunk load is executed there. In either case, heavy or blocking work is strongly discouraged to ensure the server runs smoothly. This is also applicable for the chunk loading worker threads, which the server main thread might be blocking on. Schedule large amount of work into separate thread pools.

AsyncStructureGenerateEvent

構造物の生成時に、配置するブロックやスポーンするエンティティを変更する変換処理を登録できる。自然生成では非同期、/place structure コマンドによる配置では同期で実行される。

This event will sometimes fire synchronously, depending on how it was triggered. The constructor provides a boolean to indicate if the event was fired synchronously or asynchronously. When asynchronous, this event can be called from any thread, sans the main thread, and has limited access to the API. If a Structure is naturally placed in a chunk of the world, this event will be asynchronous. If a player executes the '/place structure' command, this event will be synchronous. Allows to register transformers that can modify the blocks placed and entities spawned by the structure. Care should be taken to check Event.isAsynchronous() and treat the event appropriately.

@Experimental

実験段階。

AsyncStructureSpawnEvent

構造物がワールドに自然生成される時に呼び出される。

Called when a Structure is naturally generated in the world.

AsyncTabCompleteEvent

プラグインがタブ補完候補を非同期で生成できるイベント。このイベントが候補を返すと、通常の同期処理による候補生成は行われないが、同期のTabCompleteEventは非同期で得られた候補を使って発火する。候補を生成するのは、非同期イベントと通常の同期処理のどちらか一方のみ。

Allows plugins to compute tab completion results asynchronously. If this event provides completions, then the standard synchronous process will not be fired to populate the results. However, the synchronous TabCompleteEvent will fire with the Async results. Only 1 process will be allowed to provide completions, the Async Event, or the standard process.

BatToggleSleepEvent

コウモリが眠ろうとしたり、目を覚まそうとしたりするときに呼び出される。

Called when a bat attempts to sleep or wake up from its slumber. If a Bat Toggle Sleep event is cancelled, the Bat will not toggle its sleep state.

BeaconActivatedEvent

ビーコンの光線が見えるようになったときに呼び出される。

Called when a beacon is activated. Activation occurs when the beacon beam becomes visible.

BeaconDeactivatedEvent

ビーコンのレベルが正の値から0以下に下がったとき、またはビーコンのブロックエンティティが取り除かれるときに呼び出される。

Called when a beacon is deactivated, either because its base block(s) or itself were destroyed.

BeaconEffectEvent

ビーコンの効果がプレイヤーに適用される時に呼び出される。

Called when a beacon effect is being applied to a player.

BeeFoundFlowerEvent

ミツバチが花をターゲットする時に呼び出される。

Called when a bee targets a flower

BeeStopPollinatingEvent

ミツバチが受粉をやめる時に呼び出される。

Called when a bee stops pollinating

BellResonateEvent

鐘が鳴った後に共鳴し、近くの襲撃者を光らせる時に呼び出される。近くに襲撃者がいる場合にのみ共鳴する。

Called when a bell resonated after being rung and highlights nearby raiders. A bell will only resonate if raiders are in the vicinity of the bell.

BellRevealRaiderEvent

鐘が襲撃者の位置を明らかにする直前に呼び出される。

Called when a Raider is revealed by a bell.

@Deprecated

Bukkit に追加された BellResonateEvent を使う。

BellRingEvent

ベルが鳴る時に呼び出される。

Called when a bell is rung.

@Deprecated

Bukkit に追加された BellRingEvent を使う。

BellRingEvent

ベルが鳴る時に呼び出される。

Called when a bell is being rung.

BlockBreakBlockEvent

あるブロックが別のブロックを破壊し、破壊されたブロックがアイテムをドロップするときに呼び出される。

Called when a block forces another block to break and drop items. Currently called for piston's and liquid flows.

BlockBreakEvent

プレイヤーがブロックを破壊する時に呼び出される。

Called when a block is broken by a player. If you wish to have the block drop experience, you must set the experience value above 0. By default, experience will be set in the event if: The player is not in creative or adventure mode The player can loot the block (ie: does not destroy it completely, by using the correct tool) The player does not have silk touch The block drops experience in vanilla Minecraft Note: Plugins wanting to simulate a traditional block drop should set the block to air and utilize their own methods for determining what the default drop for the block being broken is and what to do about it, if anything. If a Block Break event is cancelled, the block will not break and experience will not drop.

BlockBreakProgressUpdateEvent

ブロックの破壊状況が更新される時に呼び出される。

Called when the progress of a block break is updated.

BlockBrushEvent

プレイヤーがブロックをブラシで掃いた時に呼び出される。

Called when a block is brushed by a player.

@Experimental

実験段階。

BlockBurnEvent

ブロックが火で焼失する直前に呼び出され、キャンセルすると焼失を防げる。

Called when a block is destroyed as a result of being burnt by fire. If a Block Burn event is cancelled, the block will not be destroyed as a result of being burnt by fire.

BlockCanBuildEvent

プレイヤーがブロックを設置しようとする場所に、設置できるか確認する時に呼び出される。

Called when we try to place a block, to see if we can build it here or not. Note: The Block returned by getBlock() is the block we are trying to place on, not the block we are trying to place. If you want to figure out what is being placed, use getMaterial() instead.

BlockCookEvent

ブロック内でItemStackの調理が正常に完了したときに呼び出される。

Called when an ItemStack is successfully cooked in a block.

BlockDamageAbortEvent

プレイヤーがブロック破壊を中断した時に呼び出される。

Called when a player stops damaging a Block.

BlockDamageEvent

プレイヤーがブロックを損傷させる時に呼び出される。

Called when a block is damaged by a player. If a Block Damage event is cancelled, the block will not be damaged.

BlockDestroyEvent

物理更新やピストンなどの明示的なきっかけで、サーバーがブロックを破壊しようとする時に呼び出される。ブロックが空気に変わるすべての場合に発火するわけではない。

Fired anytime the server intends to 'destroy' a block through some triggering reason. This does not fire anytime a block is set to air, but only with more direct triggers such as physics updates, pistons, entities changing blocks, commands set to "Destroy". This event is associated with the game playing a sound effect at the block in question, when something can be described as "intend to destroy what is there", Events such as leaves decaying, pistons retracting (where the block is moving), does NOT fire this event.

BlockDispenseArmorEvent

ディスペンサーなどのブロックが装備可能なアイテムを排出し、近くのエンティティに装備させる時に呼び出される。キャンセルすると装備されない。

Called when an equippable item is dispensed from a block and equipped on a nearby entity. If a Block Dispense Armor event is cancelled, the equipment will not be equipped on the target entity.

BlockDispenseEvent

ブロックからアイテムが排出される時に呼び出される。キャンセルすると排出されない。

Called when an item is dispensed from a block. If a Block Dispense event is cancelled, the block will not dispense the item.

BlockDispenseLootEvent

宝物庫などのブロックが、指定のルートテーブルに従って戦利品を排出する時に呼び出される。インベントリ内の単一アイテムを排出する BlockDispenseEvent とは用途が異なる。

Called when a block dispenses loot from its designated LootTable. This is not to be confused with events like BlockDispenseEvent which fires when a singular item is dispensed from its inventory container. Example: A player unlocks a trial chamber vault and the vault block dispenses its loot.

@Experimental

実験段階。

BlockDropItemEvent

プレイヤーがブロックを破壊してアイテムがドロップする場合に、そのアイテムがワールドに出現する前に呼び出される。ブロックの破壊がキャンセルされた場合は呼び出されない。

Called if a block broken by a player drops an item. If the block break is cancelled, this event won't be called. If isDropItems in BlockBreakEvent is set to false, this event won't be called. This event will also be called if the player breaks a multi block structure, for example a torch on top of a stone. Both items will have an event call. The Block is already broken as this event is called, so #getBlock() will be AIR in most cases. Use #getBlockState() for more Information about the broken block.

BlockEvent

ブロックに関するイベントであることを表す。

Represents a block related event.

BlockExpEvent

ブロックが経験値を落とす時に呼び出される。

An event that's called when a block yields experience.

BlockExplodeEvent

ブロックが爆発する時に呼び出される。爆発前のブロック状態は getExplodedBlockState() で確認する。

Called when a block explodes. Note that due to the nature of explosions, BlockEvent.getBlock() will always be an air block. getExplodedBlockState() should be used to get information about the block state that exploded.