Class NearbyRadars

java.lang.Object
net.nullved.pmweatherapi.radar.NearbyRadars

public class NearbyRadars extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    forRadarNearBlock(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.core.BlockPos block, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
    Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the block
    static void
    forRadarNearBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
    Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the block
    static void
    forRadarNearChunk(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.world.level.ChunkPos chunk, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
    Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the center of the chunk
    static void
    forRadarNearChunk(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos chunk, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
    Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the center of the chunk
    static Set<net.minecraft.core.BlockPos>
    radarsNearBlock(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.core.BlockPos pos, double radius)
    Returns a Set of the BlockPos of RadarBlocks in a defined radius around the block
    static Set<net.minecraft.core.BlockPos>
    radarsNearBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, double radius)
    Returns a Set of the BlockPos of RadarBlocks in a defined radius around the block
    static Set<net.minecraft.core.BlockPos>
    radarsNearChunk(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.world.level.ChunkPos pos, double radius)
    Returns a Set of the BlockPos of RadarBlocks in a defined radius around the center of the chunk
    static Set<net.minecraft.core.BlockPos>
    radarsNearChunk(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos, double radius)
    Returns a Set of the BlockPos of RadarBlocks in a defined radius around the center of the chunk

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NearbyRadars

      public NearbyRadars()
  • Method Details

    • radarsNearBlock

      public static Set<net.minecraft.core.BlockPos> radarsNearBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, double radius)
      Returns a Set of the BlockPos of RadarBlocks in a defined radius around the block
      Parameters:
      level - The Level to search
      pos - The BlockPos of the block at the center of the search area
      radius - The radius of the search area
      Returns:
      A Set of BlockPos
      Since:
      0.14.15.0
    • radarsNearBlock

      public static Set<net.minecraft.core.BlockPos> radarsNearBlock(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.core.BlockPos pos, double radius)
      Returns a Set of the BlockPos of RadarBlocks in a defined radius around the block
      Parameters:
      level - The ResourceKey for the Level to search
      pos - The BlockPos of the block at the center of the search area
      radius - The radius of the search area
      Returns:
      A Set of BlockPos
      Since:
      0.14.15.1
    • radarsNearChunk

      public static Set<net.minecraft.core.BlockPos> radarsNearChunk(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos pos, double radius)
      Returns a Set of the BlockPos of RadarBlocks in a defined radius around the center of the chunk
      Parameters:
      level - The Level to search
      pos - The ChunkPos of the chunk
      radius - The radius of the search area
      Returns:
      A Set of BlockPos
      Since:
      0.14.15.0
    • radarsNearChunk

      public static Set<net.minecraft.core.BlockPos> radarsNearChunk(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.world.level.ChunkPos pos, double radius)
      Returns a Set of the BlockPos of RadarBlocks in a defined radius around the center of the chunk
      Parameters:
      level - The ResourceKey for theLevel to search
      pos - The ChunkPos of the chunk
      radius - The radius of the search area
      Returns:
      A Set of BlockPos
      Since:
      0.14.15.1
    • forRadarNearBlock

      public static void forRadarNearBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos block, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
      Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the block
      Parameters:
      level - The Level to search
      block - The BlockPos of the block at the center of the search area
      radius - The radius of the search area
      consumer - The Consumer to execute for each BlockPos
      Since:
      0.14.15.0
    • forRadarNearBlock

      public static void forRadarNearBlock(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.core.BlockPos block, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
      Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the block
      Parameters:
      level - The ResourceKey of a Level to search
      block - The BlockPos of the block at the center of the search area
      radius - The radius of the search area
      consumer - The Consumer to execute for each BlockPos
      Since:
      0.14.15.1
    • forRadarNearChunk

      public static void forRadarNearChunk(net.minecraft.world.level.Level level, net.minecraft.world.level.ChunkPos chunk, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
      Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the center of the chunk
      Parameters:
      level - The Level to search
      chunk - The ChunkPos of the chunk at the center of the search area.
      radius - The radius of the search area
      consumer - The Consumer to execute for each BlockPos
      Since:
      0.14.15.0
    • forRadarNearChunk

      public static void forRadarNearChunk(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> level, net.minecraft.world.level.ChunkPos chunk, double radius, Consumer<net.minecraft.core.BlockPos> consumer)
      Executes the given Consumer for each BlockPos of a RadarBlock in a defined radius around the center of the chunk
      Parameters:
      level - The ResourceKey of a Level to search
      chunk - The ChunkPos of the chunk at the center of the search area.
      radius - The radius of the search area
      consumer - The Consumer to execute for each BlockPos
      Since:
      0.14.15.0