Skip to content

KittehOrg/CardboardBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardboard Box

A simple library for storing and retrieving ItemStacks in Bukkit-related environments.

Example

Example demonstration of storing and retrieving the item in a player's hand:

if (CardboardBox.isReady()) {
    ItemStack item = player.getInventory().getItemInMainHand();
    byte[] data = CardboardBox.serializeItem(item);
    this.getLogger().info(Base64.getEncoder().encodeToString(data));
    ItemStack item2 = CardboardBox.deserializeItem(data);
    this.getLogger().info(item2.toString());
}

Using

<repository>
    <id>dependency.download</id>
    <url>https://dependency.download/repository/public/</url>
</repository>
<dependency>
    <groupId>org.kitteh</groupId>
    <artifactId>cardboardbox</artifactId>
    <version>1.0.0</version>
</dependency>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages