java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
nokunami.floral_warfare.common.entity.ai.goal.plants.defend.PlantOwnerHurtByGoal

public class PlantOwnerHurtByGoal extends net.minecraft.world.entity.ai.goal.target.TargetGoal
  • 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.target.TargetGoal

    mob, mustSee, targetMob, unseenMemoryTicks
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PlantOwnerHurtByGoal(BasePlant abstractPlant, boolean shouldSitWhenTriggered)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
     
    void
     

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

    canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks

    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
  • Constructor Details

    • PlantOwnerHurtByGoal

      public PlantOwnerHurtByGoal(BasePlant abstractPlant)
    • PlantOwnerHurtByGoal

      public PlantOwnerHurtByGoal(BasePlant abstractPlant, boolean shouldSitWhenTriggered)
  • Method Details

    • canUse

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

      public void start()
      Overrides:
      start in class net.minecraft.world.entity.ai.goal.target.TargetGoal
    • stop

      public void stop()
      Overrides:
      stop in class net.minecraft.world.entity.ai.goal.target.TargetGoal