Class RadarMode

java.lang.Object
net.nullved.pmweatherapi.radar.RadarMode
All Implemented Interfaces:
Comparable<RadarMode>, net.minecraft.util.StringRepresentable

public class RadarMode extends Object implements net.minecraft.util.StringRepresentable, Comparable<RadarMode>
A class representing a Radar Mode.

To register your own radar mode, you must call create(net.minecraft.resources.ResourceLocation, java.util.function.Function<net.nullved.pmweatherapi.client.render.PixelRenderData, java.awt.Color>, java.awt.Color) somewhere from your MAIN MOD CLASS CONSTRUCTOR. This is to ensure the radar mode gets added to PMWExtras.RADAR_MODE so that it will be recognized by Minecraft as a valid property value

For each radar mode, you must define a function taking in a PixelRenderData and returning a Color. This function is run for every pixel on the radar, so try to make it performant.

You can also define a custom dot color with create(ResourceLocation, Function, Color) (this supports transparency)

You may also be looking to overlay something on top of the radar instead. If this is what you are looking to do, checkout RadarOverlays instead
Since:
0.14.15.6
See Also: