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

https://github.com/funnyboy-roks/drawlib

A simple library for drawing shapes using particles in PaperMC Plugins
https://github.com/funnyboy-roks/drawlib

minecraft papermc papermc-library papermc-plugin

Last synced: 16 days ago
JSON representation

A simple library for drawing shapes using particles in PaperMC Plugins

Awesome Lists containing this project

README

          

[![](https://jitpack.io/v/funnyboy-roks/DrawLib.svg)](https://jitpack.io/#funnyboy-roks/DrawLib)

# DrawLib

A simple library to draw some simple shapes using particles in Paper servers

![Screenshot](./img/screenshot.png)

## Maven

Add jitpack to your `repositories`:
```xml

jitpack.io
https://jitpack.io

```

Add DrawLib to your `dependencies`:
```xml

com.github.funnyboy-roks
DrawLib
1.1.0-SNAPSHOT

```

For other tools, see the [JitPack](https://jitpack.io/#funnyboy-roks/DrawLib) page

## Usage

```java
ShapeRenderer renderer = new ShapeRenderer();

renderer.setColor(Color.RED);
renderer.setStepSize(0.1);
renderer.setReceivers(player);
renderer.drawLine(point1, point2);
```

## Current Shapes

- Point
- Line
- Cuboid
- Sphere