Class PetOwner
java.lang.Object
games.stendhal.server.entity.player.PetOwner
Handles ownership of pets and sheep.
- Author:
- hendrik
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
ATTR_PET
The pet ID attribute name.- See Also:
- Constant Field Values
-
ATTR_SHEEP
The sheep ID attribute name.- See Also:
- Constant Field Values
-
-
Constructor Details
-
PetOwner
-
-
Method Details
-
removeSheep
-
removePet
-
hasSheep
public boolean hasSheep() -
hasPet
public boolean hasPet() -
setPet
Set the player's pet. This will also set the pet's owner.- Parameters:
pet
- The pet.
-
setSheep
Set the player's sheep. This will also set the sheep's owner.- Parameters:
sheep
- The sheep.
-
getSheep
Get the player's sheep.- Returns:
- The sheep.
-
getPet
-
destroy
public void destroy() -
retrievePet
-
retrieveSheep
-