Class MoveGoalProperties<T extends net.minecraft.world.entity.Mob>

java.lang.Object
nokunami.floral_warfare.common.entity.ai.goal.plants.defend.MoveGoalProperties<T>

public class MoveGoalProperties<T extends net.minecraft.world.entity.Mob> extends Object
  • Constructor Details

    • MoveGoalProperties

      public MoveGoalProperties()
  • Method Details

    • defaultPlant

      public static MoveGoalProperties<AbstractPlant> defaultPlant()
    • defaultPlant

      public static MoveGoalProperties<AbstractPlant> defaultPlant(int strafeDist)
    • defaultZombie

      public static MoveGoalProperties<AbstractBrainMuncher> defaultZombie(int strafeDist)
    • strafeDist

      public double strafeDist()
    • closeDistance

      public boolean closeDistance()
    • maintainDistance

      public boolean maintainDistance()
    • getCanUseGoal

      public Predicate<T> getCanUseGoal()
    • getTargetFunction

      public Function<T,net.minecraft.world.entity.LivingEntity> getTargetFunction()
    • setStrafe

      public MoveGoalProperties<T> setStrafe(double dist, boolean moveTowardsIfTooFar, boolean strafeIfTooClose)
      Parameters:
      dist - sets the distance to either strafe or maintain.
      moveTowardsIfTooFar - wether to move towards target.
      strafeIfTooClose - wether to strafe away from target.
    • setStrafe

      public MoveGoalProperties<T> setStrafe(double dist)
      Parameters:
      dist - sets the distance to either strafe or maintain.
    • goalProperties

      public MoveGoalProperties<T> goalProperties(Predicate<T> predicate)
    • targetFunction

      public MoveGoalProperties<T> targetFunction(Function<T,net.minecraft.world.entity.LivingEntity> function)