java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomTargetGoal
nokunami.floral_warfare.common.entity.ai.goal.plants.targeting.CustomHurtByGoal

public class CustomHurtByGoal extends CustomTargetGoal
  • Constructor Details

    • CustomHurtByGoal

      public CustomHurtByGoal(AbstractPlant abstractPlant, Class<?>... pToIgnoreDamage)
  • Method Details

    • canUse

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

      public CustomHurtByGoal setAlertOthers(Class<?>... pReinforcementTypes)
    • start

      public void start()
      Execute a one shot task or start executing a continuous task
      Overrides:
      start in class CustomTargetGoal
    • alertOthers

      protected void alertOthers()
    • alertOther

      protected void alertOther(net.minecraft.world.entity.Mob mob, net.minecraft.world.entity.LivingEntity target)
    • getFollowDistance

      protected double getFollowDistance()
      Overrides:
      getFollowDistance in class CustomTargetGoal