public class BlockShape
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static float |
BOTTOM_SOCKET_MIDDLE_SPACER
spacer for in between bottom sockets
|
static float |
BOTTOM_SOCKET_SIDE_SPACER
spacer for bottom sockets to block sides and other bottom sockets
|
static float |
BOTTOM_SOCKET_UPPER_SPACER
spacer on top of bottom sockets to give continuous top
|
static float |
COMMAND_PORT_OFFSET
left alignment buffer for command ports
|
static float |
CORNER_RADIUS
radius of rounded corners
|
static float |
VARIABLE_DECLARATION_SPACER
variable declaration spacer
|
| Constructor and Description |
|---|
BlockShape(RenderableBlock rb)
BlockShape constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addCustomShapes(CustomBlockShapeSet cbs)
Add a new set of custom shapes
|
java.awt.geom.Area |
reformArea()
Reform the BlockShape area.
|
public static final float COMMAND_PORT_OFFSET
public static final float CORNER_RADIUS
public static final float VARIABLE_DECLARATION_SPACER
public static final float BOTTOM_SOCKET_SIDE_SPACER
public static final float BOTTOM_SOCKET_MIDDLE_SPACER
public static final float BOTTOM_SOCKET_UPPER_SPACER
public BlockShape(RenderableBlock rb)
rb - public java.awt.geom.Area reformArea()
public static void addCustomShapes(CustomBlockShapeSet cbs)