Class GoalUtils
java.lang.Object
net.minecraft.world.entity.ai.util.GoalUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
hasMalus
(PathfinderMob mob, BlockPos pos) static boolean
isNotStable
(PathNavigation navigation, BlockPos pos) static boolean
isOutsideLimits
(BlockPos pos, PathfinderMob mob) static boolean
isRestricted
(boolean shortCircuit, PathfinderMob mob, BlockPos pos) static boolean
isSolid
(PathfinderMob mob, BlockPos pos) static boolean
isWater
(PathfinderMob mob, BlockPos pos) static boolean
mobRestricted
(PathfinderMob mob, int radius)
-
Constructor Details
-
GoalUtils
public GoalUtils()
-
-
Method Details
-
mobRestricted
- Returns:
- if a mob is stuck, within a certain radius beyond it's restriction radius
-
isOutsideLimits
- Returns:
- if a mob is above or below the map
-
isRestricted
- Returns:
- if a mob is restricted. The first parameter short circuits the operation.
-
isWater
- Returns:
- if the position is water in the mob's level
-
hasMalus
- Returns:
- if the pathfinding malus exists
-
isSolid
- Returns:
- if the mob is standing on a solid material