TrainCarts/API [ja]

From BergerHealer Wiki
Jump to navigation Jump to search
(Created page with "TrainCartsはサードパティのプラグインで拡張が行えるようになっています。TrainCartsにあるレールやサインなどのいろいろなメカニズムがビルトインAPIとして実装されています。ここではプログラマー向けに、サードパーティのプラグインで使うことのできるTrainCartsのモジュールについて詳しく解説します。")
(Created page with "== カスタムサイン ==")
Line 4: Line 4:




<div lang="en" dir="ltr" class="mw-content-ltr">
== カスタムサイン ==
== Custom Signs ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 01:31, 17 June 2026

Other languages:

TrainCartsはサードパティのプラグインで拡張が行えるようになっています。TrainCartsにあるレールやサインなどのいろいろなメカニズムがビルトインAPIとして実装されています。ここではプログラマー向けに、サードパーティのプラグインで使うことのできるTrainCartsのモジュールについて詳しく解説します。


カスタムサイン

The SignAction API allows custom signs to be registered with the plugin so that trains can activate them, much like the built-in TrainCarts signs.


Custom Track

The RailType and RailLogic API allows custom rail types to be registered. Vanilla Minecart Track uses this same API.


Custom Attachments

Custom Attachment Types can be registered to extend what visible capabilities trains can support. Once registered, they become selectable in the in-game attachment editor menu.