Class StayNearMobGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.StayNearMobGoal
public class StayNearMobGoal
extends net.minecraft.world.entity.ai.goal.Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Constructor Summary
ConstructorsConstructorDescriptionStayNearMobGoal(net.minecraft.world.entity.PathfinderMob mob, net.minecraft.world.entity.Mob mobToStayNear, double maxDistance) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, canContinueToUse, getFlags, getServerLevel, getServerLevel, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, start, stop, toString
-
Constructor Details
-
StayNearMobGoal
public StayNearMobGoal(net.minecraft.world.entity.PathfinderMob mob, net.minecraft.world.entity.Mob mobToStayNear, double maxDistance)
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.world.entity.ai.goal.Goal
-