Package noppes.npcs.api.entity.data
Interface INPCAi
public interface INPCAi
-
Method Summary
-
Method Details
-
getAnimation
int getAnimation() -
setAnimation
void setAnimation(int type) -
getCurrentAnimation
int getCurrentAnimation()- Returns:
- Returns the npcs current animation. E.g. when npc is set to LYING it wont be lying while walking so it will be NORMAL
- See Also:
AnimationType
-
setReturnsHome
void setReturnsHome(boolean bo)- Parameters:
bo
- Whether or not the npc will try to return to his home position
-
getReturnsHome
boolean getReturnsHome() -
getRetaliateType
int getRetaliateType()- Returns:
- Retaliation type. 0:Normal, 1:Panic, 2:Retreat, 3:Nothing
-
setRetaliateType
void setRetaliateType(int type)- Parameters:
type
- Retaliation type. 0:Normal, 1:Panic, 2:Retreat, 3:Nothing
-
getMovingType
int getMovingType()- Returns:
- 0:Standing, 1:Wandering, 2:MovingPath
-
setMovingType
void setMovingType(int type)- Parameters:
type
- 0:Standing, 1:Wandering, 2:MovingPath
-
getStandingType
int getStandingType()- Returns:
- 0:RotateBody, 1:NoRotation, 2:Stalking, 3:HeadRotation
-
setStandingType
void setStandingType(int type)- Parameters:
type
- 0:RotateBody, 1:NoRotation, 2:Stalking, 3:HeadRotation
-
getAttackInvisible
boolean getAttackInvisible()- Returns:
- Returns whether or not he can attack invisible entities
-
setAttackInvisible
void setAttackInvisible(boolean attack) -
getWanderingRange
int getWanderingRange() -
setWanderingRange
void setWanderingRange(int range)- Parameters:
range
- (1-50)
-
getInteractWithNPCs
boolean getInteractWithNPCs() -
setInteractWithNPCs
void setInteractWithNPCs(boolean interact) -
getStopOnInteract
boolean getStopOnInteract() -
setStopOnInteract
void setStopOnInteract(boolean stopOnInteract) -
getWalkingSpeed
int getWalkingSpeed() -
setWalkingSpeed
void setWalkingSpeed(int speed)- Parameters:
speed
- 0-10
-
getMovingPathType
int getMovingPathType()- Returns:
- 0:Looping, 1:Backtracking
-
getMovingPathPauses
boolean getMovingPathPauses() -
setMovingPathType
void setMovingPathType(int type, boolean pauses)- Parameters:
type
- 0:Looping, 1:Backtracking
-
getDoorInteract
int getDoorInteract() -
setDoorInteract
void setDoorInteract(int type) -
getCanSwim
boolean getCanSwim() -
setCanSwim
void setCanSwim(boolean canSwim) -
getSheltersFrom
int getSheltersFrom()- Returns:
- 0:Darkness, 1:Sunlight, 2:Disabled
-
setSheltersFrom
void setSheltersFrom(int type)- Parameters:
type
- 0:Darkness, 1:Sunlight, 2:Disabled
-
getAttackLOS
boolean getAttackLOS()- Returns:
- Whether the NPC requires Direct Line of Sight to Attack
-
setAttackLOS
void setAttackLOS(boolean enabled)- Parameters:
mustSee
- Whether the NPC requires Direct Line of Sight to Attack
-
getAvoidsWater
boolean getAvoidsWater() -
setAvoidsWater
void setAvoidsWater(boolean enabled) -
getLeapAtTarget
boolean getLeapAtTarget() -
setLeapAtTarget
void setLeapAtTarget(boolean leap) -
getTacticalType
int getTacticalType()- See Also:
TacticalType
-
setTacticalType
void setTacticalType(int type)- See Also:
TacticalType
-
getTacticalRange
int getTacticalRange() -
setTacticalRange
void setTacticalRange(int range)
-