Package org.bukkit.entity
Enum SpawnCategory
- All Implemented Interfaces:
Serializable
,Comparable<SpawnCategory>
,java.lang.constant.Constable
Represents groups of entities with shared spawn behaviors and mob caps.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEntities related to Ambient, eg: Bat.Entities related to Animals, eg: Strider, Cow, Turtle, etc.All the Axolotl are represented by this Category.Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.Entities related to Monsters, eg: Witch, Zombie, Creeper, etc.Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc.Entities related to Water Animals, eg: Squid or Dolphin.Entities related to Water Underground, eg: Glow Squid. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpawnCategory
Returns the enum constant of this type with the specified name.static SpawnCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MONSTER
Entities related to Monsters, eg: Witch, Zombie, Creeper, etc. -
ANIMAL
Entities related to Animals, eg: Strider, Cow, Turtle, etc. -
WATER_ANIMAL
Entities related to Water Animals, eg: Squid or Dolphin. -
WATER_AMBIENT
Entities related to Water Ambient, eg: Cod, PufferFish, Tropical Fish, Salmon, etc. -
WATER_UNDERGROUND_CREATURE
Entities related to Water Underground, eg: Glow Squid. -
AMBIENT
Entities related to Ambient, eg: Bat. -
AXOLOTL
All the Axolotl are represented by this Category. -
MISC
Entities not related to a mob, eg: Player, ArmorStand, Boat, etc.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-