public class PetOwner
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addPurchasedPet(java.lang.String petName) |
static PetOwner |
getPetOwner(org.bukkit.entity.Player player) |
static PetOwner |
getPetOwner(java.lang.String name) |
boolean |
hasPet() |
void |
reloadData()
Activates a Data Reload for the OwnerFile.
|
void |
removePet()
Removes the players current pet, if the player does not have a pet method will do nothing.
|
void |
renamePet()
Opens a Anvil GUI which allows the owner to rename their pet.
|
void |
setPet(tk.magnus498.petPlugin.pet.IPet pet)
This method is normally used as a Backend code method for spawning Pets.
|
void |
setPetName(java.lang.String name)
This changes the Pets name, Will fire the PetNameChangeEvent Event.
|
public void reloadData()
public static PetOwner getPetOwner(java.lang.String name)
name
- Player usernamepublic static PetOwner getPetOwner(org.bukkit.entity.Player player)
player
- org.bukkit.entity.Player instancepublic void setPetName(java.lang.String name)
name
- Pets New namepublic void setPet(tk.magnus498.petPlugin.pet.IPet pet)
pet
- instance if IPet classpublic boolean hasPet()
public void addPurchasedPet(java.lang.String petName)
public void removePet()
public void renamePet()