Package net.citizensnpcs.api.trait.trait
Class Owner
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.api.trait.trait.Owner
Represents the owner of an NPC.
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetOwner()Deprecated.booleanbooleanbooleanisOwnedBy(CommandSender sender) Gets if the givenCommandSenderis the owner of an NPC.voidDeprecated.voidDeprecated.voidvoidsetOwner(CommandSender sender) toString()
- 
Constructor Details- 
Ownerpublic Owner()
 
- 
- 
Method Details- 
getOwnerDeprecated.Gets the owner.- Returns:
- "SERVER" or the UUID string
 
- 
getOwnerId- Returns:
- The owner's UUID, or nullif the owner is the server or a UUID has not been collected for the owner.
 
- 
isOwnedByGets if the givenCommandSenderis the owner of an NPC.- Parameters:
- sender- Sender to check
- Returns:
- Whether the sender is the owner of an NPC
 
- 
isOwnedBy
- 
isOwnedBy
- 
setOwner
- 
setOwnerDeprecated.Sets the owner of an NPC.- Parameters:
- owner- Name of the player to set as owner of an NPC
 
- 
setOwnerDeprecated.Sets the owner of an NPC.- Parameters:
- owner- Name of the owner
- uuid- UUID of the owner
 
- 
setOwner
- 
toString
 
-