Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sya-ri/base64-itemstack

ItemStack and Base64 (string) conversion library for Spigot
https://github.com/sya-ri/base64-itemstack

base64 minecraft spigot spigot-api spigot-library spigot-plugin

Last synced: 2 months ago
JSON representation

ItemStack and Base64 (string) conversion library for Spigot

Awesome Lists containing this project

README

        

# base64-itemstack

[![GitHub License](https://img.shields.io/badge/license-MIT%20License-blue.svg?style=flat)](LICENSE)
[![Maven Central](https://img.shields.io/maven-central/v/dev.s7a/base64-itemstack)](https://search.maven.org/artifact/dev.s7a/base64-itemstack)
[![Build status](https://img.shields.io/github/actions/workflow/status/sya-ri/base64-itemstack/build.yml?branch=master&label=Build&logo=github)](.github/workflows/build.yml)

ItemStack and Base64 (string) conversion library for Spigot.

## Installation

### build.gradle.kts

```kotlin
repositories {
mavenCentral()
}

dependencies {
implementation("dev.s7a:base64-itemstack:1.0.0")
}
```

### build.gradle

```groovy
repositories {
mavenCentral()
}

dependencies {
implementation "dev.s7a:base64-itemstack:1.0.0"
}
```

## Usage

### ItemStack → String

```java
String base64 = Base64ItemStack.encode(itemStack);
```

### String → ItemStack

```java
ItemStack itemStack = Base64ItemStack.decode(base64);
```