Package net.nullved.pmweatherapi.example
Class ExampleOverlay
java.lang.Object
net.nullved.pmweatherapi.example.ExampleOverlay
- All Implemented Interfaces:
IRadarOverlay
This is an example overlay that draws a dot at every lightning strike and fades out
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetModID()voidrender(boolean canRender, RadarRenderData radarRenderData, Object... args) Renders objects on top of the radarMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.nullved.pmweatherapi.client.render.radar.IRadarOverlay
getID, getIDPath, getRadarMode, radarToWorldCoords, radarToWorldCoords, radarToWorldCoordsExp, renderQuad, renderQuad, renderText, renderText, renderText, renderTexture, renderTexture, renderTexture, renderTexture, vertex, worldToRadarCoords, worldToRadarCoords, worldToRadarCoordsExp
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExampleOverlay
public ExampleOverlay()
-
-
Method Details
-
render
Description copied from interface:IRadarOverlayRenders objects on top of the radar- Specified by:
renderin interfaceIRadarOverlay- Parameters:
canRender-trueif either the server doesn't require WSR-88D or a WSR-88D is complete within 4 chunks of the radarradarRenderData- The data used to callBlockEntityRenderer.render(BlockEntity, float, PoseStack, MultiBufferSource, int, int)args- The arguments to pass to the Radar Overlay
-
getModID
- Specified by:
getModIDin interfaceIRadarOverlay- Returns:
- The Mod ID of the mod that registered this overlay
-