Package noppes.npcs.api.entity.data
Interface INPCAi
public interface INPCAi
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
boolean
boolean
int
int
boolean
boolean
boolean
int
int
int
int
boolean
int
int
boolean
int
int
void
setAnimation
(int type) void
setAttackInvisible
(boolean attack) void
setAttackLOS
(boolean enabled) void
setAvoidsWater
(boolean enabled) void
setCanSwim
(boolean canSwim) void
setDoorInteract
(int type) void
setInteractWithNPCs
(boolean interact) void
setLeapAtTarget
(boolean leap) void
setMountControl
(boolean enabled) void
setMovingPathType
(int type, boolean pauses) void
setMovingType
(int type) void
setNavigationType
(int type) void
setRetaliateType
(int type) void
setReturnsHome
(boolean bo) void
setSheltersFrom
(int type) void
setStandingType
(int type) void
setStopOnInteract
(boolean stopOnInteract) void
setWalkingSpeed
(int speed) void
setWanderingRange
(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)
-