Package net.nullved.pmweatherapi.util
Class PMWUtils
java.lang.Object
net.nullved.pmweatherapi.util.PMWUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRadarAdjacent(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos pos) Determines if a radar is next to the givenBlockPosstatic booleanisRadarAdjacent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Determines if a radar is next to the givenBlockPos
-
Constructor Details
-
PMWUtils
public PMWUtils()
-
-
Method Details
-
isRadarAdjacent
public static boolean isRadarAdjacent(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dim, net.minecraft.core.BlockPos pos) Determines if a radar is next to the givenBlockPos- Parameters:
dim- The dimension to search inpos- TheBlockPosto look by- Returns:
trueif there is a radar adjacent to this block,falseotherwise- Since:
- 0.14.16.2
-
isRadarAdjacent
public static boolean isRadarAdjacent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Determines if a radar is next to the givenBlockPos- Parameters:
level- TheLevelto search inpos- TheBlockPosto look by- Returns:
trueif there is a radar adjacent to this block,falseotherwise- Since:
- 0.14.16.2
-