public final class ServerPolygon
extends java.lang.Object
OverlayPolygons sharing one set of OverlayShapeProps.
The overlayId is a stable, addon-chosen string. Re-calling
IServerOverlayAPI.show(net.minecraft.server.level.ServerPlayer, 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.server.level.ServerPlayer, java.lang.String, java.lang.String) removes it.
| Constructor and Description |
|---|
ServerPolygon(java.lang.String overlayId,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension,
java.util.List<OverlayPolygon> polygons,
OverlayShapeProps props) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> |
dimension() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
overlayId() |
java.util.List<OverlayPolygon> |
polygons() |
OverlayShapeProps |
props() |
java.lang.String |
toString() |
public ServerPolygon(java.lang.String overlayId,
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension,
java.util.List<OverlayPolygon> polygons,
OverlayShapeProps props)
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 overlaypublic java.lang.String overlayId()
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension()
public java.util.List<OverlayPolygon> polygons()
public OverlayShapeProps props()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object