/API
Jump to navigation
Jump to search
Saihou-Heiki (talk | contribs) (Created page with "== カスタムサイン ==") |
Saihou-Heiki (talk | contribs) (Created page with "'''SignAction'''というAPIを用いれば、プラグインで独自の看板サインを作れるようになります。独自のサインはTrainCartsに実装されているサインと同じように、列車とレールを用いて使うことができます。") |
||
| Line 6: | Line 6: | ||
== カスタムサイン == | == カスタムサイン == | ||
'''SignAction'''というAPIを用いれば、プラグインで独自の看板サインを作れるようになります。独自のサインは[[Special:MyLanguage/TrainCarts/Signs|TrainCartsに実装されているサイン]]と同じように、列車とレールを用いて使うことができます。 | |||
[[Special:MyLanguage/TrainCarts/API/SignAction|» SignAction]] | |||
[[Special:MyLanguage/TrainCarts/API/SignAction|» SignAction | |||
Revision as of 01:32, 17 June 2026
TrainCartsはサードパティのプラグインで拡張が行えるようになっています。TrainCartsにあるレールやサインなどのいろいろなメカニズムがビルトインAPIとして実装されています。ここではプログラマー向けに、サードパーティのプラグインで使うことのできるTrainCartsのモジュールについて詳しく解説します。
カスタムサイン
SignActionというAPIを用いれば、プラグインで独自の看板サインを作れるようになります。独自のサインはTrainCartsに実装されているサインと同じように、列車とレールを用いて使うことができます。
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.