Sueta
[L

[Library] spigot-maps | Easily render Images, GIFs and Text

2.1.1

A small, lightweight library to make the usage of custom maps and map renderers easier.

·Map

A small, lightweight library to make the usage of custom maps and map renderers easier.

Features:

  • Dynamic map rendering (based on render context)
  • Text and image rendering with convenient usage
  • Base class for own renderer implementations
  • API to store renderers persistently
  • Tools to resize / crop / divide images so that they fit the minecraft maps
  • Convenient builder classes and factory methods
  • Implementation of MapView to use directly with the Spigot API

Simple Example:

ImageRenderer renderer = ImageRenderer.create(image);
RenderedMap map = RenderedMap.create(renderer);
player.getInventory().addItem(map.createItemStack());
player.updateInventory();

This does the following:

  1. Create an ImageRenderer that renders a specific image for every player
  2. Create a new RenderedMap that uses this renderer
  3. Add this map to a player's inventory

Quick Start

How to add this to your project

Similar projects

Map →