Package noppes.npcs.api.roles
Interface IRoleFollower
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDaysLeft(int days)
int
getDaysLeft()
java.lang.String
getDialogFarewell()
java.lang.String
getDialogHire()
boolean
getGuiDisabled()
boolean
getInfiniteDays()
IPlayer
getOwner()
int
getRate(int index)
boolean
hasOwner()
boolean
isFollowing()
void
setDialogFarewell(java.lang.String dialogFarewell)
void
setDialogHire(java.lang.String dialogHire)
void
setGuiDisabled(boolean disabled)
void
setInfiniteDays(boolean infinite)
void
setIsFollowing(boolean following)
void
setOwner(IPlayer player)
void
setRate(int index, int amount)
-
-
-
Method Detail
-
setOwner
void setOwner(IPlayer player)
- Parameters:
player
- Player who is set as the owner. If null given everything resets- Since:
- 1.7.10c
-
getOwner
IPlayer getOwner()
- Returns:
- Returns the followers owner. Returns null if he has no owner or the owner is offline
- Since:
- 1.7.10c
-
hasOwner
boolean hasOwner()
- Returns:
- Returns whether or not the follower has an owner
- Since:
- 1.7.10c
-
isFollowing
boolean isFollowing()
-
setIsFollowing
void setIsFollowing(boolean following)
-
getDaysLeft
int getDaysLeft()
- Returns:
- Returns days left
- Since:
- 1.7.10c
-
addDaysLeft
void addDaysLeft(int days)
- Parameters:
days
- The days you want to add to the days remaining- Since:
- 1.7.10c
-
getInfiniteDays
boolean getInfiniteDays()
- Returns:
- Returns whether or not the follower is set to infinite days
- Since:
- 1.7.10c
-
setInfiniteDays
void setInfiniteDays(boolean infinite)
- Parameters:
infinite
- Sets whether the days hired are infinite- Since:
- 1.7.10c
-
getGuiDisabled
boolean getGuiDisabled()
- Returns:
- Return whether the gui is disabled
- Since:
- 1.7.10c
-
setGuiDisabled
void setGuiDisabled(boolean disabled)
- Parameters:
disabled
- Set the gui to be disabled or not- Since:
- 1.7.10c
-
setRate
void setRate(int index, int amount)
- Parameters:
index
- Index of Rate [0 - 2]amount
- Amount hired for
-
getRate
int getRate(int index)
- Parameters:
index
- Index of Rate [0 - 2]- Returns:
- amount fired for
-
setDialogHire
void setDialogHire(java.lang.String dialogHire)
- Parameters:
dialogHire
- New dialog hire string
-
getDialogHire
java.lang.String getDialogHire()
- Returns:
- dialog hire string
-
setDialogFarewell
void setDialogFarewell(java.lang.String dialogFarewell)
- Parameters:
dialogFarewell
- New dialog farewell string
-
getDialogFarewell
java.lang.String getDialogFarewell()
- Returns:
- dialog farewell string
-
-