Package com.rvandoosselaer.blocks
Class Block
java.lang.Object
com.rvandoosselaer.blocks.Block
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Block
Creates a cube shape, non transparent, solid block using a single image.static Block
Creates a cube shape, non transparent, solid block.static Block
createFrom
(BlockDTO blockDTO)
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
create
Creates a cube shape, non transparent, solid block using a single image.- Parameters:
name
-type
-- Returns:
- block
-
create
Creates a cube shape, non transparent, solid block.- Parameters:
name
-type
-- Returns:
- block
-
createFrom
-