GSit-API Gradle & Maven Implementation
Add the GSit-API to your project:
Gradle implementation:
Code (Text):
repositories {
maven(url = "https://jitpack.io/")
}
Code (Text):
compileOnly("com.github.Gecolay.GSit:core:VERSION")
Maven implementation:
Code (Text):
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
Code (Text):
<dependency>
<groupId>com.github.Gecolay.GSit</groupId>
<artifactId>core</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
API for Developers
If you are a Developer and like to create your own code around GSit you can use the GSitAPI!
Initialization
There is no Initialization. GSitAPI is a class with static methods!
So you can use all methods like:
Code (Text):
GSitAPI.isEntitySitting(entity);
A list of all GSit-Methods:
Take a closer look at the latest API here:
GSitAPI
A list of all GSit-Events:
PreEntitySitEvent -> Gets called before an entity starts sitting (cancelable)
EntitySitEvent -> Gets called when an entity starts sitting
PreEntityStopSitEvent -> Gets called before an entity stops sitting (cancelable)
EntityStopSitEvent -> Gets called when an entity stops sitting
PrePlayerPoseEvent -> Gets called before a player starts posing (cancelable)
PlayerPoseEvent -> Gets called when a player starts posing
PrePlayerStopPoseEvent -> Gets called before a player stops a Pose (cancelable)
PlayerStopPoseEvent -> Gets called when a player stops a Pose
PrePlayerPlayerSitEvent -> Gets called before a player starts sitting on another Player (cancelable)
PlayerPlayerSitEvent -> Gets called when a player starts sitting on another Player
PrePlayerStopPlayerSitEvent -> Gets called before a player stops the player sit action (cancelable)
PrePlayerStopPlayerSitEvent -> Gets called when a player stops the player sit action
PrePlayerCrawlEvent -> Gets called before a player starts crawling (cancelable)
PlayerCrawlEvent -> Gets called when a player starts crawling
PrePlayerStopCrawlEvent -> Gets called before a player stops crawling (cancelable)
PlayerStopCrawlEvent -> Gets called when a player stops crawling
GSitReloadEvent -> Gets called when the /gsitreload command is used
GSitLoadedEvent -> Gets called when the plugin is completely loaded