Package noppes.npcs.api.entity.data
Interface INPCAi
public interface INPCAi
-
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanbooleanbooleanintintbooleanbooleanbooleanintintintintbooleanintintbooleanintintvoidsetAnimation(int type) voidsetAttackInvisible(boolean attack) voidsetAttackLOS(boolean enabled) voidsetAvoidsWater(boolean enabled) voidsetCanSwim(boolean canSwim) voidsetDoorInteract(int type) voidsetInteractWithNPCs(boolean interact) voidsetLeapAtTarget(boolean leap) voidsetMountControl(boolean enabled) voidsetMovingPathType(int type, boolean pauses) voidsetMovingType(int type) voidsetNavigationType(int type) voidsetRetaliateType(int type) voidsetReturnsHome(boolean bo) voidsetSheltersFrom(int type) voidsetStandingType(int type) voidsetStopOnInteract(boolean stopOnInteract) voidsetWalkingSpeed(int speed) voidsetWanderingRange(int range)
-
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:
-
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:
enabled- 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) -
setMountControl
void setMountControl(boolean enabled)
-