public class ShapeHexagon
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private org.bukkit.Location |
center
The center location of the hexagon.
|
private java.awt.geom.Path2D.Double |
polygon
The calculated polygon object.
|
private int |
radius
The radius of the hexagon.
|
| Constructor and Description |
|---|
ShapeHexagon(org.bukkit.Location center,
int radius)
Constructs a block structure in the shape of a hexagon.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.bukkit.block.Block> |
create(org.bukkit.Material material)
Creates the shape as ingame block structure.
|
private java.awt.geom.Path2D.Double |
createHexagon() |
org.bukkit.Location |
getCenter() |
java.awt.geom.Path2D.Double |
getPolygon() |
int |
getRadius() |
private final org.bukkit.Location center
private final int radius
private final java.awt.geom.Path2D.Double polygon
public ShapeHexagon(org.bukkit.Location center,
int radius)
center - The center location of the hexagon.radius - The radius of the hexagon.private java.awt.geom.Path2D.Double createHexagon()
public org.bukkit.Location getCenter()
public int getRadius()
public java.awt.geom.Path2D.Double getPolygon()
public java.util.List<org.bukkit.block.Block> create(org.bukkit.Material material)
material - The block material.