Class GoalUtils
java.lang.Object
net.minecraft.world.entity.ai.util.GoalUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasGroundPathNavigation(Mob pMob) static booleanhasMalus(PathfinderMob pMob, BlockPos pPos) static booleanisNotStable(PathNavigation pNavigation, BlockPos pPos) static booleanisOutsideLimits(BlockPos pPos, PathfinderMob pMob) static booleanisRestricted(boolean pShortCircuit, PathfinderMob pMob, BlockPos pPos) static booleanisSolid(PathfinderMob pMob, BlockPos pPos) static booleanisWater(PathfinderMob pMob, BlockPos pPos) static booleanmobRestricted(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