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 TypeMethodDescriptiondefault net.minecraft.resources.ResourceLocationgetID()The ID of this overlay, defined bygetModID()andgetIDPath()default StringIf not overriden, this method returns the class name of the implementor converted to snake casegetModID()default RadarModegetRadarMode(RadarRenderData radarRenderData) Get theRadarModeof the radardefault net.minecraft.world.phys.Vec3radarToWorldCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize) default net.minecraft.world.phys.Vec3radarToWorldCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize) default net.minecraft.world.phys.Vec3radarToWorldCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize) voidrender(boolean canRender, RadarRenderData radarRenderData, Object... args) Renders objects on top of the radardefault voidrenderQuad(RadarRenderData radarRenderData, float qx, float qy, float qz, float scale, com.mojang.blaze3d.vertex.PoseStack poseStack, int color, int cli) default voidrenderQuad(RadarRenderData radarRenderData, net.minecraft.world.phys.Vec3 q, float scale, com.mojang.blaze3d.vertex.PoseStack pose, int color, int cli) default voidrenderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData) Render the text given in the givenComponentdefault voidrenderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack) Render the text given in the givenComponentdefault voidrenderText(net.minecraft.network.chat.Component component, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int backgroundColor) Render the text given in the givenComponentwith a background colordefault voidrenderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData) Render a texture at the givenResourceLocationdefault voidrenderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, int color) Render a texture at the givenResourceLocationdefault voidrenderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack) Render a texture at the givenResourceLocationdefault voidrenderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData, com.mojang.blaze3d.vertex.PoseStack poseStack, int color) Render a texture at the givenResourceLocationdefault voidvertex(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.Vec3worldToRadarCoords(double x, double y, double z, net.minecraft.core.BlockPos radarPos, int resolution, float simSize) default net.minecraft.world.phys.Vec3worldToRadarCoords(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, int resolution, float simSize) default net.minecraft.world.phys.Vec3worldToRadarCoordsExp(net.minecraft.world.phys.Vec3 pos, net.minecraft.core.BlockPos radarPos, float sizeRenderDiameter, float simSize)
-
Method Details
-
render
Renders objects on top of the radar- 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- Since:
- 0.14.15.2
-
getRadarMode
Get theRadarModeof the radar- Parameters:
radarRenderData- TheRadarRenderData- 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 givenResourceLocation- Parameters:
texture- TheResourceLocationof the textureradarRenderData- TheRadarRenderDataposeStack- ThePoseStackto render withcolor- 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 givenResourceLocation- Parameters:
texture- TheResourceLocationof the textureradarRenderData- TheRadarRenderDataposeStack- ThePoseStackto 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 givenResourceLocation- Parameters:
texture- TheResourceLocationof the textureradarRenderData- TheRadarRenderDatacolor- The color- Since:
- 0.15.3.3
-
renderTexture
default void renderTexture(net.minecraft.resources.ResourceLocation texture, RadarRenderData radarRenderData) Render a texture at the givenResourceLocation- Parameters:
texture- TheResourceLocationof the textureradarRenderData- TheRadarRenderData- 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 givenComponentwith a background color- Parameters:
component- TheComponentto renderradarRenderData- TheRadarRenderDataposeStack- ThePoseStackto render withbackgroundColor- 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 givenComponent- Parameters:
component- TheComponentto renderradarRenderData- TheRadarRenderDataposeStack- ThePoseStackto 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 givenComponent- Parameters:
component- TheComponentto renderradarRenderData- TheRadarRenderData- 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
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 bygetModID()andgetIDPath()- Returns:
- The
ResourceLocationof 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)
-