Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 894 Bytes

File metadata and controls

46 lines (34 loc) · 894 Bytes

DrawLib

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

Screenshot

Maven

Add jitpack to your repositories:

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

Add DrawLib to your dependencies:

<dependency>
    <groupId>com.github.funnyboy-roks</groupId>
    <artifactId>DrawLib</artifactId>
    <version>1.1.0-SNAPSHOT</version>
</dependency>

For other tools, see the JitPack page

Usage

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