Class GoalUtils
java.lang.Object
net.minecraft.world.entity.ai.util.GoalUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanhasMalus(PathfinderMob mob, BlockPos pos) static booleanisNotStable(PathNavigation navigation, BlockPos pos) static booleanisOutsideLimits(BlockPos pos, PathfinderMob mob) static booleanisRestricted(boolean shortCircuit, PathfinderMob mob, BlockPos pos) static booleanisSolid(PathfinderMob mob, BlockPos pos) static booleanisWater(PathfinderMob mob, BlockPos pos) static booleanmobRestricted(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