Class MoveGoalProperties<T extends net.minecraft.world.entity.Mob>
java.lang.Object
nokunami.floral_warfare.common.entity.ai.goal.plants.defend.MoveGoalProperties<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MoveGoalProperties<AbstractPlant>static MoveGoalProperties<AbstractPlant>defaultPlant(int strafeDist) defaultZombie(int strafeDist) goalProperties(Predicate<T> predicate) booleansetStrafe(double dist) setStrafe(double dist, boolean moveTowardsIfTooFar, boolean strafeIfTooClose) doubletargetFunction(Function<T, net.minecraft.world.entity.LivingEntity> function)
-
Constructor Details
-
MoveGoalProperties
public MoveGoalProperties()
-
-
Method Details
-
defaultPlant
-
defaultPlant
-
defaultZombie
-
strafeDist
public double strafeDist() -
closeDistance
public boolean closeDistance() -
maintainDistance
public boolean maintainDistance() -
getCanUseGoal
-
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
- Parameters:
dist- sets the distance to either strafe or maintain.
-
goalProperties
-
targetFunction
public MoveGoalProperties<T> targetFunction(Function<T, net.minecraft.world.entity.LivingEntity> function)
-