Enum Class PetType
- All Implemented Interfaces:
Serializable,Comparable<PetType>,Constable
Represents all of the Pet Types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an Axolotl.Represents a Bee.Represents a Blaze.Represents a Capybara.Represents a Demogorgon.Represents a Dolphin.Represents an Eagle.Represents an Elephant.Represents a Fox.Represents a Gekko.Represents a Giraffe.Represents a Gorilla.Represents a Hummingbird.Represents a Jellyfish.Represents a Llama.Represents a Mouse.Represents a Narwhal.Represents a Panda.Represents a Polar Bear.Represents a Pufferfish.Represents a Rabbit.Represents a Slime.Represents a Strider.Represents a Tarantula.Represents a Tardigrade.Represents a Tiger.Represents a Unicorn.Represents a Whale. -
Method Summary
Modifier and TypeMethodDescriptionfloatFetches the pitch of the ambient sound.@NotNull SoundFetches the sound that is played ambiently, when this Pet is spawned.@NotNull PetInfogetInfo()Fetches the Pet Information associated with this PetType.@NotNull RarityFetches this PetType's Rarity.static PetTypeReturns the enum constant of this class with the specified name.static PetType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEE
Represents a Bee. -
RABBIT
Represents a Rabbit. -
GIRAFFE
Represents a Giraffe. -
DOLPHIN
Represents a Dolphin. -
LLAMA
Represents a Llama. -
POLAR_BEAR
Represents a Polar Bear. -
ELEPHANT
Represents an Elephant. -
PANDA
Represents a Panda. -
FOX
Represents a Fox. -
NARWHAL
Represents a Narwhal. -
PUFFERFISH
Represents a Pufferfish. -
GORILLA
Represents a Gorilla. -
STRIDER
Represents a Strider. -
TARDIGRADE
Represents a Tardigrade. -
HUMMINGBIRD
Represents a Hummingbird. -
AXOLOTL
Represents an Axolotl. -
CAPYBARA
Represents a Capybara. -
MOUSE
Represents a Mouse. -
TIGER
Represents a Tiger. -
BLAZE
Represents a Blaze. -
JELLYFISH
Represents a Jellyfish. -
WHALE
Represents a Whale. -
SLIME
Represents a Slime. -
UNICORN
Represents a Unicorn. -
DEMOGORGON
Represents a Demogorgon. -
TARANTULA
Represents a Tarantula. -
GEKKO
Represents a Gekko. -
EAGLE
Represents an Eagle.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getInfo
Fetches the Pet Information associated with this PetType.- Returns:
- Pet Information
-
getAmbientSound
Fetches the sound that is played ambiently, when this Pet is spawned.- Returns:
- Ambient Pet Sound
-
getAmbientPitch
public float getAmbientPitch()Fetches the pitch of the ambient sound.- Returns:
- Ambient Sound Pitch
-
getRarity
Fetches this PetType's Rarity.- Returns:
- Pet Rarity
-