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

java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T>
nokunami.floral_warfare.common.entity.ai.goal.plants.defend.PlantNearestTargetGoal<T>

public class PlantNearestTargetGoal<T extends net.minecraft.world.entity.LivingEntity> extends net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    PlantNearestTargetGoal.Properties<T extends net.minecraft.world.entity.LivingEntity>
     

    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 Class<T>
     

    Fields inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal

    randomInterval, target, targetConditions

    Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal

    mob, mustSee, targetMob, unseenMemoryTicks
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    protected void
     
    protected @NotNull net.minecraft.world.phys.AABB
    getTargetSearchArea(double dist)
     
    void
     
    void
     

    Methods inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal

    setTarget

    Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal

    canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, 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
  • Field Details

    • targetType

      protected final Class<T extends net.minecraft.world.entity.LivingEntity> targetType
  • Constructor Details

  • Method Details

    • canUse

      public boolean canUse()
      Overrides:
      canUse in class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T extends net.minecraft.world.entity.LivingEntity>
    • getTargetSearchArea

      @NotNull protected @NotNull net.minecraft.world.phys.AABB getTargetSearchArea(double dist)
      Overrides:
      getTargetSearchArea in class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T extends net.minecraft.world.entity.LivingEntity>
    • findTarget

      protected void findTarget()
      Overrides:
      findTarget in class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T extends net.minecraft.world.entity.LivingEntity>
    • start

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T extends net.minecraft.world.entity.LivingEntity>
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.world.entity.ai.goal.Goal