For developers
Maven
Repository reference
Add this in <repositories> clause in pom.xml
<repositories>
<repository>
<id>bpb-repo</id>
<url>raw.github.com/eirikh1996/BlockPlacersAndBreakers/repo</url>
</repository>
</repositories>
Dependency reference
Add this to <dependencies> clause in pom.xml
<dependencies>
<dependency>
<groupId>io.github.eirikh1996</groupId>
<artifactId>BlockPlacersAndBreakers</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
Gradle
Repository reference
Add this to repositories in build.gradle
repositories {
maven { url = uri("raw.github.com/eirikh1996/BlockPlacersAndBreakers/repo")}
}
Dependency reference
Add this to dependencies in build.gradle
dependencies {
"api"("io.github.eirikh1996:BlockPlacersAndBreakers:1.2")
}
Event API
Currently, it has four events:
- BlockPlacerPlaceBlockEvent - this is called when a block is placed by a block placer
- BlockBreakerBreakBlockEvent - this is called when a block is broken by a block breaker
- BlockPlacerCreateEvent - this is called when a block placer is created
- BlockBreakerCreateEvent - this is called when a block breaker is created