Package com.rvandoosselaer.blocks
Class Slab
- java.lang.Object
-
- com.rvandoosselaer.blocks.Slab
-
- All Implemented Interfaces:
Shape
public class Slab extends java.lang.Object implements Shape
A shape implementation for a slab. A slab is actual a cube shape with controllable y (height) values. If you specify a starting y value of 0 and an end y value of 1, you have a unit cube shape. Only 4 vertices are used per face, 2 vertices are shared.
-
-
Field Summary
-
Fields inherited from interface com.rvandoosselaer.blocks.Shape
CUBE, DOUBLE_SLAB, PYRAMID, SLAB, STAIR_BACK, STAIR_FRONT, STAIR_LEFT, STAIR_RIGHT, WEDGE_BACK, WEDGE_FRONT, WEDGE_LEFT, WEDGE_RIGHT
-
-
Constructor Summary
Constructors Constructor Description Slab(float startY, float endY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(com.simsilica.mathd.Vec3i location, Chunk chunk, ChunkMesh chunkMesh)
Adds the shape at the location in the chunk to the chunk mesh.
-