-
-
Notifications
You must be signed in to change notification settings - Fork 79
Documentation
Hazel edited this page Aug 7, 2021
·
15 revisions
Here is a documentation of the Movecraft API
Movecraft is hosted in GitHub Packages as a maven repository. Unfortunately, GitHub Packages does not yet allow anonymous access, and therefore you will need to setup your maven settings as per these instructions. You will then want to add the following to your pom.xml's dependency and repository sections:
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
<repository>
<id>github</id>
<name>GitHub APDevTeam/Movecraft Apache Maven Packages</name>
<url>https://maven.pkg.github.com/APDevTeam/Movecraft</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
You can track GitHub's progress on allowing anonymous access here.
Event | Description | Cancellable |
---|---|---|
CraftEvent | Base event for all craft-related events | No, but some events extending from this are |
CraftCollisionEvent | Called when a craft collides with a solid block | No |
CraftDetectEvent | Called when a craft is detected | Yes |
CraftPilotEvent | Called when a player pilots a craft | No |
CraftPreTranslateEvent | Called prior to a craft's translation algorithm is performed | Yes |
CraftReleaseEvent | Called when a craft is released | No |
CraftRotateEvent | Called when a craft is rotated | Yes |
CraftSinkEvent | Called when a craft sinks | Yes |
CraftTranslateEvent | Called when a craft translates and after algorithm is performed | Yes |
ItemHarvestEvent | Called when a craft harvest blocks defined under 'harvestBlocks' | No |
SignTranslateEvent | Called when a sign on a moving craft is translated | No |