Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seggan/sf4k

A library for using Kotlin to write Slimefun addons
https://github.com/seggan/sf4k

Last synced: about 2 months ago
JSON representation

A library for using Kotlin to write Slimefun addons

Awesome Lists containing this project

README

        

# sf4k

![Maven Central Version](https://img.shields.io/maven-central/v/io.github.seggan/sf4k)
[![Docs](https://img.shields.io/badge/docs-gh--pages-blue)](https://seggan.github.io/sf4k/)

sf4k is a library for Kotlin that provides a useful base and utilities for writing
[Slimefun](https://github.com/Slimefun/Slimefun4) addons.

## Installation

### Gradle

```kotlin
repositories {
mavenCentral()
}

dependencies {
implementation("io.github.seggan:sf4k:[VERSION]")
}
```

### Maven

```xml

io.github.seggan
sf4k
[VERSION]

```

## How to use

sf4k provides `AbstractAddon` as a base class for you to extend from, as Kotlin does not allow
you to extend both `JavaPlugin` and `SlimefunAddon` at the same time.

sf4k also provides a few convenience functions, such as destructuring and operator overloads for
`Location`, and `BlockStorage` serialization interface. See the [docs](https://seggan.github.io/sf4k/)
for more information.