Skip to content

funnyboy-roks/DrawLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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