Class GoalUtils
java.lang.Object
net.minecraft.world.entity.ai.util.GoalUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasGroundPathNavigation
(Mob pMob) static boolean
hasMalus
(PathfinderMob pMob, BlockPos pPos) static boolean
isNotStable
(PathNavigation pNavigation, BlockPos pPos) static boolean
isOutsideLimits
(BlockPos pPos, PathfinderMob pMob) static boolean
isRestricted
(boolean pShortCircuit, PathfinderMob pMob, BlockPos pPos) static boolean
isSolid
(PathfinderMob pMob, BlockPos pPos) static boolean
isWater
(PathfinderMob pMob, BlockPos pPos) static boolean
mobRestricted
(PathfinderMob pMob, int pRadius)
-
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