Class Block

java.lang.Object
com.rvandoosselaer.blocks.Block

public class Block extends 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 Details

    • Block

      public Block()
  • Method Details

    • create

      public static Block create(String name, String type)
      Creates a cube shape, non transparent, solid block using a single image.
      Parameters:
      name -
      type -
      Returns:
      block
    • create

      public static Block create(String name, String type, boolean multipleImages)
      Creates a cube shape, non transparent, solid block.
      Parameters:
      name -
      type -
      Returns:
      block
    • createFrom

      public static Block createFrom(BlockDTO blockDTO)