Package com.rvandoosselaer.blocks
Class Block
- java.lang.Object
-
- com.rvandoosselaer.blocks.Block
-
public class Block extends java.lang.Object
The basic building block of the Blocks framework. A block has a name and some properties describing the look and feel of the block in the resulting chunk node. The shape of the block defines the form (vertices, normals, tangents, UV coordinates, ...) of the block, the type defines the look (material, images, ...).
-
-
Constructor Summary
Constructors Constructor Description Block()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Block
create(java.lang.String name, java.lang.String type)
Creates a cube shape, non transparent, solid block using a single image.static Block
create(java.lang.String name, java.lang.String type, boolean multipleImages)
Creates a cube shape, non transparent, solid block.
-
-
-
Method Detail
-
create
public static Block create(java.lang.String name, java.lang.String type)
Creates a cube shape, non transparent, solid block using a single image.- Parameters:
name
-type
-- Returns:
- block
-
create
public static Block create(java.lang.String name, java.lang.String type, boolean multipleImages)
Creates a cube shape, non transparent, solid block.- Parameters:
name
-type
-- Returns:
- block
-
-