Package journeymap.api.v2.client.model
Class MapPolygon
java.lang.Object
journeymap.api.v2.client.model.MapPolygon
A MapPolygon is a sequence of at least 3 BlockPos. The first point must be the
LOWER-LEFT (or SouthEast) point in the sequence, and should be ordered
counterclockwise. The last point will be connected to the first when rendered.
Note that the actual list passed into the constructor isn't retained; the points are copied into an unmodifiable list. If you need to update the points, pass in a new list entirely.
Setters use the Builder pattern so they can be chained.
-
Constructor Summary
ConstructorsConstructorDescriptionMapPolygon(List<net.minecraft.core.BlockPos> points) Constructor.MapPolygon(net.minecraft.core.BlockPos... points) Constructor. -
Method Summary
-
Constructor Details
-
MapPolygon
public MapPolygon(net.minecraft.core.BlockPos... points) Constructor.- Parameters:
points- See class description for details on ordering.- Throws:
IllegalArgumentException- if conditions for a proper polygon aren't met.
-
MapPolygon
Constructor.- Parameters:
points- See class description for details on ordering.- Throws:
IllegalArgumentException- if conditions for a proper polygon aren't met.
-
-
Method Details