Package me.gamercoder215.mobchip.ai.goal
Interface Conditional<T>
- Type Parameters:
T
- Type of Condition to resolve
- All Known Implementing Classes:
PathfinderBreakDoor
,PathfinderNearestAttackableTarget
,PathfinderNearestAttackableTargetRaider
,PathfinderNearestHealableRaider
,PathfinderUseItem
,PathfinderWildTarget
public interface Conditional<T>
Represents a Conditional State for this Pathfinder to work
-
Method Summary
Modifier and TypeMethodDescriptionSets the Condition of this Conditional Pathfinder.void
setCondition
(@NotNull Predicate<T> condition) Sets the Condition of this Conditional Pathfinder.
-
Method Details
-
getCondition
Sets the Condition of this Conditional Pathfinder.- Returns:
- Predicate of Condition
-
setCondition
Sets the Condition of this Conditional Pathfinder.- Parameters:
condition
- Condition to set
-