Interface IRadarOverlay

All Known Implementing Classes:
ExampleOverlay, IDOverlay

public interface IRadarOverlay
An interface defining a radar overlay To implement this, you must override render(boolean, RadarRenderData, Object...) and getModID()
Since:
0.14.15.2
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.resources.ResourceLocation
    The ID of this overlay, defined by getModID() and getIDPath()
    default String
    If not overriden, this method returns the class name of the implementor converted to snake case
     
    default RadarMode
    getRadarMode(RadarRenderData radarRenderData)
    Get the RadarMode of the radar
    default net.minecraft.world.phys.Vec3
    radarToWorldCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
     
    default net.minecraft.world.phys.Vec3
    radarToWorldCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
     
    default net.minecraft.world.phys.Vec3
    radarToWorldCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize)
     
    void
    render(boolean canRender, RadarRenderData radarRenderData, Object... args)
    Renders objects on top of the radar
    default void
    renderQuad(RadarRenderData radarRenderData, float qx, float qy, float qz, float scale, com.mojang.blaze3d.vertex.PoseStack poseStack, int color, int cli)
     
    default void
    renderQuad(RadarRenderData radarRenderData, net.minecraft.world.phys.Vec3 q, float scale, com.mojang.blaze3d.vertex.PoseStack pose, int color, int cli)
     
    default void
    renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData)
    Render the text given in the given Component
    default void
    renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack)
    Render the text given in the given Component
    default void
    renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int backgroundColor)
    Render the text given in the given Component with a background color
    default void
    renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData)
    Render a texture at the given ResourceLocation
    default void
    renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, int color)
    Render a texture at the given ResourceLocation
    default void
    renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack)
    Render a texture at the given ResourceLocation
    default void
    renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int color)
    Render a texture at the given ResourceLocation
    default void
    vertex(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack.Pose pose, int color, float x, float y, float z, float u, float v, int overlay)
     
    default net.minecraft.world.phys.Vec3
    worldToRadarCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
     
    default net.minecraft.world.phys.Vec3
    worldToRadarCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
     
    default net.minecraft.world.phys.Vec3
    worldToRadarCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize)
     
  • Method Details

    • render

      void render(boolean canRender, RadarRenderData radarRenderData, Object... args)
      Renders objects on top of the radar
      Parameters:
      canRender - true if either the server doesn't require WSR-88D or a WSR-88D is complete within 4 chunks of the radar
      radarRenderData - The data used to call BlockEntityRenderer.render(BlockEntity, float, PoseStack, MultiBufferSource, int, int)
      args - The arguments to pass to the Radar Overlay
      Since:
      0.14.15.2
    • getRadarMode

      default RadarMode getRadarMode(RadarRenderData radarRenderData)
      Get the RadarMode of the radar
      Parameters:
      radarRenderData - The RadarRenderData
      Returns:
      The radar's RadarMode
      Since:
      0.14.16.2
    • renderQuad

      default void renderQuad(RadarRenderData radarRenderData, net.minecraft.world.phys.Vec3 q, float scale, com.mojang.blaze3d.vertex.PoseStack pose, int color, int cli)
    • renderQuad

      default void renderQuad(RadarRenderData radarRenderData, float qx, float qy, float qz, float scale, com.mojang.blaze3d.vertex.PoseStack poseStack, int color, int cli)
    • renderTexture

      default void renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int color)
      Render a texture at the given ResourceLocation
      Parameters:
      texture - The ResourceLocation of the texture
      radarRenderData - The RadarRenderData
      poseStack - The PoseStack to render with
      color - The color
      Since:
      0.15.3.3
    • vertex

      default void vertex(com.mojang.blaze3d.vertex.VertexConsumer buffer, com.mojang.blaze3d.vertex.PoseStack.Pose pose, int color, float x, float y, float z, float u, float v, int overlay)
    • renderTexture

      default void renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack)
      Render a texture at the given ResourceLocation
      Parameters:
      texture - The ResourceLocation of the texture
      radarRenderData - The RadarRenderData
      poseStack - The PoseStack to render with
      Since:
      0.15.3.3
    • renderTexture

      default void renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, int color)
      Render a texture at the given ResourceLocation
      Parameters:
      texture - The ResourceLocation of the texture
      radarRenderData - The RadarRenderData
      color - The color
      Since:
      0.15.3.3
    • renderTexture

      default void renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData)
      Render a texture at the given ResourceLocation
      Parameters:
      texture - The ResourceLocation of the texture
      radarRenderData - The RadarRenderData
      Since:
      0.15.3.3
    • renderText

      default void renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int backgroundColor)
      Render the text given in the given Component with a background color
      Parameters:
      component - The Component to render
      radarRenderData - The RadarRenderData
      poseStack - The PoseStack to render with
      backgroundColor - The background color to render
      Since:
      0.16.0.0
    • renderText

      default void renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack)
      Render the text given in the given Component
      Parameters:
      component - The Component to render
      radarRenderData - The RadarRenderData
      poseStack - The PoseStack to render with
      Since:
      0.14.16.2
    • renderText

      default void renderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData)
      Render the text given in the given Component
      Parameters:
      component - The Component to render
      radarRenderData - The RadarRenderData
      Since:
      0.14.16.2
    • getModID

      String getModID()
      Returns:
      The Mod ID of the mod that registered this overlay
      Since:
      0.14.15.2
    • getIDPath

      default String getIDPath()
      If not overriden, this method returns the class name of the implementor converted to snake case
      Returns:
      The path to use for this overlay's ID
      Since:
      0.14.15.2
    • getID

      default net.minecraft.resources.ResourceLocation getID()
      The ID of this overlay, defined by getModID() and getIDPath()
      Returns:
      The ResourceLocation of this overlay
      Since:
      0.14.15.2
    • worldToRadarCoords

      default net.minecraft.world.phys.Vec3 worldToRadarCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
    • worldToRadarCoords

      default net.minecraft.world.phys.Vec3 worldToRadarCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
    • radarToWorldCoords

      default net.minecraft.world.phys.Vec3 radarToWorldCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
    • radarToWorldCoords

      default net.minecraft.world.phys.Vec3 radarToWorldCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize)
    • worldToRadarCoordsExp

      default net.minecraft.world.phys.Vec3 worldToRadarCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize)
    • radarToWorldCoordsExp

      default net.minecraft.world.phys.Vec3 radarToWorldCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize)