Package com.rvandoosselaer.blocks.shapes
Class Pole
java.lang.Object
com.rvandoosselaer.blocks.shapes.Pole
- All Implemented Interfaces:
Shape
A shape implementation for a pole. The default direction of a pole is UP. A direction of NORTH/EAST/SOUTH/WEST will
create a horizontal pole, with the top face facing the direction. The Direction UP/DOWN will create a vertical pole.
The depth/width of the pole can be configured with the widthExtend.
-
Field Summary
Fields inherited from interface com.rvandoosselaer.blocks.Shape
DIRECTIONS_SIZE, FACES_DIR, ROTATION_DOWN, ROTATION_EAST, ROTATION_NORTH, ROTATION_SOUTH, ROTATION_UP, ROTATION_WEST, YAW_EAST, YAW_NORTH, YAW_UP, YAW_WEST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the shape at the location in the chunk to the chunk mesh.static float
map
(float value, float startRangeIn, float endRangeIn, float startRangeOut, float endRangeOut) Function that scales an input value in a given range to a given output range.
-
Constructor Details
-
Pole
public Pole() -
Pole
-
-
Method Details
-
add
Description copied from interface:Shape
Adds the shape at the location in the chunk to the chunk mesh. -
map
public static float map(float value, float startRangeIn, float endRangeIn, float startRangeOut, float endRangeOut) Function that scales an input value in a given range to a given output range.
-