Enum Class ResourcePackStatus

java.lang.Object
java.lang.Enum<ResourcePackStatus>
de.themoep.resourcepacksplugin.core.ResourcePackStatus
All Implemented Interfaces:
Serializable, Comparable<ResourcePackStatus>, Constable

public enum ResourcePackStatus extends Enum<ResourcePackStatus>
Created by Phoenix616 on 17.06.2015.
  • Enum Constant Details

  • Method Details

    • values

      public static ResourcePackStatus[] 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 ResourcePackStatus 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
    • getStatus

      public static ResourcePackStatus getStatus(int id)
    • fromVanillaId

      public static ResourcePackStatus fromVanillaId(int id)
      Get the ResourcePackStatus from the vanilla protocol id
      Parameters:
      id - The id
      Returns:
      The ResourcePackStatus or INVALIDSTATUS if the id is invalid
    • getId

      public int getId()
    • requiresPack

      public boolean requiresPack()
    • isNextAfter

      public boolean isNextAfter(ResourcePackStatus status)