Difference between revisions of "TrainCarts/API"

From BergerHealer Wiki
Jump to navigation Jump to search
(Prepared the page for translation)
Line 1: Line 1:
[[TrainCarts|« Go back]]
+
<languages/>
 +
<translate>
 +
[[Special:MyLanguage/TrainCarts|« Go back]]
  
 
TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins.
 
TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins.
 +
  
 
== Custom Signs ==
 
== Custom Signs ==
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|TrainCarts signs]].
 
  
[[TrainCarts/API/SignAction|» SignAction API]]
+
The '''SignAction''' API allows custom signs to be registered with the plugin so that trains can activate them, much like the built-in [[Special:MyLanguage/TrainCarts/Signs|TrainCarts signs]].
 +
 
 +
[[Special:MyLanguage/TrainCarts/API/SignAction|» SignAction API]]
 +
 
  
 
== Custom Track ==
 
== Custom Track ==
 +
 
The '''RailType''' and '''RailLogic''' API allows custom rail types to be registered. Vanilla Minecart Track uses this same API.
 
The '''RailType''' and '''RailLogic''' API allows custom rail types to be registered. Vanilla Minecart Track uses this same API.
  
 
[[Special:MyLanguage/TrainCarts/API/Rail|» Rail API]]
 
[[Special:MyLanguage/TrainCarts/API/Rail|» Rail API]]
 +
  
 
== Custom Attachments ==
 
== 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 [[TrainCarts/Attachments|attachment editor menu]].
+
 
 +
Custom '''Attachment Types''' can be registered to extend what visible capabilities trains can support. Once registered, they become selectable in the in-game [[Special:MyLanguage/TrainCarts/Attachments|attachment editor menu]].
  
 
[[Special:MyLanguage/TrainCarts/API/Attachments|» Attachments API]]
 
[[Special:MyLanguage/TrainCarts/API/Attachments|» Attachments API]]
 +
</translate>

Revision as of 21:16, 28 December 2020

Other languages:
English

« Go back

TrainCarts is written in a way to allow third-party plugins to extend it. Various mechanics are built-in api's implemented by TrainCarts, such as the different vanilla rails, signs and more. For programmers, this page details the different modules in TrainCarts that can be used in third-party plugins.


Custom Signs

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.

» SignAction API


Custom Track

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

» Rail 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.

» Attachments API