Class PetOwner

java.lang.Object
games.stendhal.server.entity.player.PetOwner

public class PetOwner extends Object
Handles ownership of pets and sheep.
Author:
hendrik
  • Field Details

  • Constructor Details

    • PetOwner

      public PetOwner(Player player)
  • Method Details

    • removeSheep

      public void removeSheep(Sheep sheep)
    • removePet

      public void removePet(Pet pet)
    • hasSheep

      public boolean hasSheep()
    • hasPet

      public boolean hasPet()
    • setPet

      public void setPet(Pet pet)
      Set the player's pet. This will also set the pet's owner.
      Parameters:
      pet - The pet.
    • setSheep

      public void setSheep(Sheep sheep)
      Set the player's sheep. This will also set the sheep's owner.
      Parameters:
      sheep - The sheep.
    • getSheep

      public Sheep getSheep()
      Get the player's sheep.
      Returns:
      The sheep.
    • getPet

      public Pet getPet()
    • destroy

      public void destroy()
    • retrievePet

      public Pet retrievePet()
    • retrieveSheep

      public Sheep retrieveSheep()