Class AvoidStrongEntityGoal<T extends net.minecraft.world.entity.LivingEntity>

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.AvoidEntityGoal<T>
com.idark.valoria.registries.entity.ai.goals.AvoidStrongEntityGoal<T>

public class AvoidStrongEntityGoal<T extends net.minecraft.world.entity.LivingEntity> extends net.minecraft.world.entity.ai.goal.AvoidEntityGoal<T>
  • 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.AvoidEntityGoal

    avoidClass, avoidPredicate, maxDist, mob, path, pathNav, predicateOnAvoidEntity, toAvoid
  • Constructor Summary

    Constructors
    Constructor
    Description
    AvoidStrongEntityGoal(net.minecraft.world.entity.PathfinderMob pEntity, Class<T> pEntityClassToAvoid, float pMaxDist, double pWalkSpeedModifier, double pSprintSpeedModifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    Execute a one shot task or start executing a continuous task
    void
    Keep ticking a continuous task that has already been started

    Methods inherited from class net.minecraft.world.entity.ai.goal.AvoidEntityGoal

    canContinueToUse, stop

    Methods inherited from class net.minecraft.world.entity.ai.goal.Goal

    adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString

    Methods inherited from class java.lang.Object

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

    • AvoidStrongEntityGoal

      public AvoidStrongEntityGoal(net.minecraft.world.entity.PathfinderMob pEntity, Class<T> pEntityClassToAvoid, float pMaxDist, double pWalkSpeedModifier, double pSprintSpeedModifier)
  • Method Details

    • canUse

      public boolean canUse()
      Overrides:
      canUse in class net.minecraft.world.entity.ai.goal.AvoidEntityGoal<T extends net.minecraft.world.entity.LivingEntity>
    • 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.AvoidEntityGoal<T extends net.minecraft.world.entity.LivingEntity>
    • tick

      public void tick()
      Keep ticking a continuous task that has already been started
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.AvoidEntityGoal<T extends net.minecraft.world.entity.LivingEntity>