Package journeymap.api.v2.server.overlay
Class ServerPolygon
java.lang.Object
journeymap.api.v2.server.overlay.ServerPolygon
One logical overlay pushed by a server addon. May contain many disjoint
OverlayPolygons sharing one set of OverlayShapeProps.
The overlayId is a stable, addon-chosen string. Re-calling
IServerOverlayAPI.show(net.minecraft.entity.player.EntityPlayerMP, java.lang.String, journeymap.api.v2.server.overlay.ServerPolygon...) with the same (modId, overlayId) pair
replaces any prior version on the client; calling
IServerOverlayAPI.remove(net.minecraft.entity.player.EntityPlayerMP, java.lang.String, java.lang.String) removes it.
-
Constructor Summary
ConstructorsConstructorDescriptionServerPolygon(String overlayId, int dimension, List<OverlayPolygon> polygons, OverlayShapeProps props) -
Method Summary
-
Constructor Details
-
ServerPolygon
public ServerPolygon(String overlayId, int dimension, List<OverlayPolygon> polygons, OverlayShapeProps props) - Parameters:
overlayId- the addon-stable handle for this overlaydimension- the dimension this overlay belongs topolygons- one or more polygons, all sharing the same shape propsprops- style and visibility for every polygon in this overlay
-
-
Method Details