Class PathfinderCatOnBed
java.lang.Object
me.gamercoder215.mobchip.ai.goal.Pathfinder
me.gamercoder215.mobchip.ai.goal.PathfinderCatOnBed
- All Implemented Interfaces:
PathfinderInfo, Ranged, SpeedModifier
Represents a Pathfinder for a Cat to sit on a Bed
-
Nested Class Summary
Nested classes/interfaces inherited from class Pathfinder
Pathfinder.PathfinderFlag -
Field Summary
Fields inherited from class Pathfinder
entityFields inherited from interface Ranged
DEFAULT_ATTACK_INTERVAL, DEFAULT_ATTACK_RANGE, DEFAULT_LOOK_RANGEFields inherited from interface SpeedModifier
DEFAULT_SPEED_MODIFIER -
Constructor Summary
ConstructorsConstructorDescriptionPathfinderCatOnBed(@NotNull Cat cat, double speedMod) Constructs a PathfinderCatOnBed with a range of 4.PathfinderCatOnBed(@NotNull Cat cat, double speedMod, int range) Constructs a PathfinderCatOnBed. -
Method Summary
Modifier and TypeMethodDescription@NotNull CatGet the entity involved in this Pathfinder.@NotNull Pathfinder.PathfinderFlag[]getFlags()Fetches an Array of Flags that this Pathfinder has.Returns the pathfinder's internal name.floatgetRange()Gets the current Range.doubleGet the Speed Modifier of this Pathfinder.voidsetRange(float range) Sets the current Range.voidsetSpeedModifier(double mod) Sets the Speed Modifier of this Pathfinder.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PathfinderInfo
getName
-
Constructor Details
-
PathfinderCatOnBed
Constructs a PathfinderCatOnBed with a range of 4.- Parameters:
cat- Cat to usespeedMod- Speed Modifier
-
PathfinderCatOnBed
Constructs a PathfinderCatOnBed.- Parameters:
cat- Cat to usespeedMod- Speed Modifierrange- Range to use
-
-
Method Details
-
getEntity
Description copied from class:PathfinderGet the entity involved in this Pathfinder.- Overrides:
getEntityin classPathfinder- Returns:
- Creature involved
-
getRange
-
setRange
Description copied from interface:RangedSets the current Range.- Specified by:
setRangein interfaceRanged- Parameters:
range- Range to set- Throws:
IllegalArgumentException
-
getSpeedModifier
public double getSpeedModifier()Description copied from interface:SpeedModifierGet the Speed Modifier of this Pathfinder.- Specified by:
getSpeedModifierin interfaceSpeedModifier- Returns:
- Speed Modifier
-
setSpeedModifier
public void setSpeedModifier(double mod) Description copied from interface:SpeedModifierSets the Speed Modifier of this Pathfinder.- Specified by:
setSpeedModifierin interfaceSpeedModifier- Parameters:
mod- Modifier to set
-
getFlags
Description copied from class:PathfinderFetches an Array of Flags that this Pathfinder has.
- Specified by:
getFlagsin classPathfinder- Returns:
- Array of Pathfinder Flags
-
getInternalName
Description copied from interface:PathfinderInfoReturns the pathfinder's internal name. This may match the actual NMS name of the pathfinder, but it may not.- Specified by:
getInternalNamein interfacePathfinderInfo- Returns:
- Internal Name
-