Class DefendVillageTargetGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
tech.anonymoushacker1279.immersiveweapons.entity.ai.goal.DefendVillageTargetGoal
public class DefendVillageTargetGoal
extends net.minecraft.world.entity.ai.goal.target.TargetGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.Goal.Flag -
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionDefendVillageTargetGoal(net.minecraft.world.entity.Mob mobEntity) Constructor for DefendVillageTargetGoal. -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Constructor Details
-
DefendVillageTargetGoal
public DefendVillageTargetGoal(net.minecraft.world.entity.Mob mobEntity) Constructor for DefendVillageTargetGoal.- Parameters:
mobEntity- theMobEntityinstance
-
-
Method Details
-
canUse
public boolean canUse()Returns whether execution should begin. You can also read and cache any state necessary for execution in this method as well.- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal- Returns:
- boolean
-
start
public void start()Execute a one shot task or start executing a continuous task- Overrides:
startin classnet.minecraft.world.entity.ai.goal.target.TargetGoal
-