Class ThirdHeadTargetGoal<T extends net.minecraft.world.entity.Mob & TertiaryTargeting>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.ThirdHeadTargetGoal<T>
public abstract class ThirdHeadTargetGoal<T extends net.minecraft.world.entity.Mob & TertiaryTargeting>
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TThe entity that this goal belongs toprotected final booleanprotected net.minecraft.world.entity.LivingEntityprotected int -
Constructor Summary
ConstructorsConstructorDescriptionThirdHeadTargetGoal(T pMob, boolean pMustSee) ThirdHeadTargetGoal(T mob, boolean mustSee, boolean mustReach) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAttack(net.minecraft.world.entity.LivingEntity potentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions targetPredicate) Checks if this is a suitable target.booleanReturns whether an in-progress EntityAIBase should continue executingbooleancanUse()protected doublesetUnseenMemoryTicks(int pUnseenMemoryTicks) voidstart()Execute a one shot task or start executing a continuous taskvoidstop()Reset the task's internal state.Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
mob
The entity that this goal belongs to -
mustSee
protected final boolean mustSee -
thirdTarget
@Nullable protected net.minecraft.world.entity.LivingEntity thirdTarget -
unseenMemoryTicks
protected int unseenMemoryTicks
-
-
Constructor Details
-
ThirdHeadTargetGoal
-
ThirdHeadTargetGoal
-
-
Method Details
-
canUse
public boolean canUse()- Specified by:
canUsein classnet.minecraft.world.entity.ai.goal.Goal
-
canContinueToUse
public boolean canContinueToUse()Returns whether an in-progress EntityAIBase should continue executing- Overrides:
canContinueToUsein classnet.minecraft.world.entity.ai.goal.Goal
-
getFollowDistance
protected double getFollowDistance() -
start
public void start()Execute a one shot task or start executing a continuous task- Overrides:
startin classnet.minecraft.world.entity.ai.goal.Goal
-
stop
public void stop()Reset the task's internal state. Called when this task is interrupted by another one- Overrides:
stopin classnet.minecraft.world.entity.ai.goal.Goal
-
canAttack
protected boolean canAttack(@Nullable net.minecraft.world.entity.LivingEntity potentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions targetPredicate) Checks if this is a suitable target. -
setUnseenMemoryTicks
-