Class ExampleOverlay

java.lang.Object
net.nullved.pmweatherapi.example.ExampleOverlay
All Implemented Interfaces:
IRadarOverlay

public class ExampleOverlay extends Object implements IRadarOverlay
This is an example overlay that draws a dot at every lightning strike and fades out
See Also:
  • Field Details

  • Constructor Details

    • ExampleOverlay

      public ExampleOverlay()
  • Method Details

    • render

      public void render(boolean canRender, RenderData renderData, com.mojang.blaze3d.vertex.BufferBuilder bufferBuilder, Object... args)
      Description copied from interface: IRadarOverlay
      Renders objects on top of the radar
      Specified by:
      render in interface IRadarOverlay
      Parameters:
      canRender - true if either the server doesn't require WSR-88D or a WSR-88D is complete within 4 chunks of the radar
      renderData - The data used to call BlockEntityRenderer.render(BlockEntity, float, PoseStack, MultiBufferSource, int, int)
      bufferBuilder - The BufferBuilder that gets drawn to the radar
      args - The arguments to pass to the Radar Overlay
    • getModID

      public String getModID()
      Specified by:
      getModID in interface IRadarOverlay
      Returns:
      The Mod ID of the mod that registered this overlay