Enum Class XEntityType

java.lang.Object
java.lang.Enum<XEntityType>
com.cryptomorin.xseries.XEntityType
All Implemented Interfaces:
XBase<XEntityType,org.bukkit.entity.EntityType>, Serializable, Comparable<XEntityType>, Constable

public enum XEntityType extends Enum<XEntityType> implements XBase<XEntityType,org.bukkit.entity.EntityType>
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static XEntityType[] 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

      public static XEntityType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValues

      @NotNull public static @NotNull @Unmodifiable Collection<XEntityType> getValues()
    • of

      @NotNull public static @NotNull XEntityType of(@NotNull @NotNull org.bukkit.entity.Entity entity)
    • of

      @NotNull public static @NotNull XEntityType of(@NotNull @NotNull org.bukkit.entity.EntityType entityType)
    • of

      public static Optional<XEntityType> of(@NotNull @NotNull String entityType)
    • getNames

      public String[] getNames()
      Specified by:
      getNames in interface XBase<XEntityType,org.bukkit.entity.EntityType>
    • get

      public org.bukkit.entity.EntityType get()
      Specified by:
      get in interface XBase<XEntityType,org.bukkit.entity.EntityType>