java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
nokunami.floral_warfare.common.entity.ai.goal.plants.support.PlantSupportGoal<T>

public class PlantSupportGoal<T extends BasePlant & ISupportPlant> extends net.minecraft.world.entity.ai.goal.Goal
  • Constructor Details

    • PlantSupportGoal

      public PlantSupportGoal(T healer)
    • PlantSupportGoal

      public PlantSupportGoal(T healer, HealerType type)
    • PlantSupportGoal

      public PlantSupportGoal(T healer, int speed)
    • PlantSupportGoal

      public PlantSupportGoal(T healer, boolean mustSee)
    • PlantSupportGoal

      public PlantSupportGoal(T healer, int speed, boolean mustSee)
    • PlantSupportGoal

      public PlantSupportGoal(T healer, int speed, boolean mustSee, HealerType type)
  • 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.Goal
    • stop

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

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

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

      public void checkAndPerformActions(double distance)
    • timeToStartAnim

      public boolean timeToStartAnim()
    • timeToStartSupport

      public boolean timeToStartSupport()
    • reset

      public boolean reset()
    • validForSupport

      public boolean validForSupport(net.minecraft.world.entity.Entity entity, net.minecraft.world.effect.MobEffectCategory category, boolean a)