Class SecondHeadTargetGoal

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.SecondHeadTargetGoal

public abstract class SecondHeadTargetGoal 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 net.minecraft.world.entity.Mob
    The entity that this goal belongs to
    protected final boolean
     
    protected net.minecraft.world.entity.LivingEntity
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecondHeadTargetGoal(net.minecraft.world.entity.Mob mob, boolean mustSee)
     
    SecondHeadTargetGoal(net.minecraft.world.entity.Mob 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 net.minecraft.world.entity.Mob mob
      The entity that this goal belongs to
    • mustSee

      protected final boolean mustSee
    • secondTarget

      @Nullable protected net.minecraft.world.entity.LivingEntity secondTarget
    • unseenMemoryTicks

      protected int unseenMemoryTicks
  • Constructor Details

    • SecondHeadTargetGoal

      public SecondHeadTargetGoal(net.minecraft.world.entity.Mob mob, boolean mustSee)
    • SecondHeadTargetGoal

      public SecondHeadTargetGoal(net.minecraft.world.entity.Mob 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 SecondHeadTargetGoal setUnseenMemoryTicks(int pUnseenMemoryTicks)