Package me.gamercoder215.mobchip.ai
Interface Probable
- All Known Implementing Classes:
PathfinderLookAtEntity
,PathfinderRandomStrollLand
public interface Probable
Represents a Pathfinder that has a chance of succeeding
The range must be between 0F and 1F.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the current probability of this Pathfinder.void
setProbability
(float prob) Sets the current probability of this Pathfinder.
-
Method Details
-
getProbability
float getProbability()Get the current probability of this Pathfinder.- Returns:
- Probability of this Pathfinder happening
-
setProbability
void setProbability(float prob) Sets the current probability of this Pathfinder.- Parameters:
prob
- Probability to set
-