Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sya-ri/base64-itemstack
- Owner: sya-ri
- License: mit
- Created: 2022-12-15T17:31:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T22:09:29.000Z (3 months ago)
- Last Synced: 2024-10-11T03:51:44.781Z (3 months ago)
- Topics: base64, minecraft, spigot, spigot-api, spigot-library, spigot-plugin
- Language: Java
- Homepage:
- Size: 299 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```