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

    Fields
    Modifier and Type
    Field
    Description
    protected final T
    The entity that this goal belongs to
    protected final boolean
     
    protected net.minecraft.world.entity.LivingEntity
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ThirdHeadTargetGoal(T pMob, boolean pMustSee)
     
    ThirdHeadTargetGoal(T mob, boolean mustSee, boolean mustReach)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    canAttack(net.minecraft.world.entity.LivingEntity potentialTarget, net.minecraft.world.entity.ai.targeting.TargetingConditions targetPredicate)
    Checks if this is a suitable target.
    boolean
    Returns whether an in-progress EntityAIBase should continue executing
    boolean
     
    protected double
     
    setUnseenMemoryTicks(int pUnseenMemoryTicks)
     
    void
    Execute a one shot task or start executing a continuous task
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • mob

      protected final T extends net.minecraft.world.entity.Mob & TertiaryTargeting 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

      public ThirdHeadTargetGoal(T pMob, boolean pMustSee)
    • ThirdHeadTargetGoal

      public ThirdHeadTargetGoal(T mob, boolean mustSee, boolean mustReach)
  • Method Details

    • canUse

      public boolean canUse()
      Specified by:
      canUse in class net.minecraft.world.entity.ai.goal.Goal
    • canContinueToUse

      public boolean canContinueToUse()
      Returns whether an in-progress EntityAIBase should continue executing
      Overrides:
      canContinueToUse in class net.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:
      start in class net.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:
      stop in class net.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

      public ThirdHeadTargetGoal<?> setUnseenMemoryTicks(int pUnseenMemoryTicks)