Enum Class EnumNPCType

java.lang.Object
java.lang.Enum<EnumNPCType>
com.pixelmonmod.pixelmon.enums.EnumNPCType
All Implemented Interfaces:
Serializable, Comparable<EnumNPCType>, Constable

public enum EnumNPCType extends Enum<EnumNPCType>
Enum representation of types of NPCs.
  • Enum Constant Details

  • Method Details

    • values

      public static EnumNPCType[] 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 EnumNPCType 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
    • getDefaultName

      public String getDefaultName()
    • getFromOrdinal

      public static EnumNPCType getFromOrdinal(short ordinal)
      Finds the NPC enum from its enum ordinal.
      Parameters:
      ordinal - The ordinal to find an NPC enum from.
      Returns:
      The corresponding NPC enum.
    • getFromOrdinal

      public static EnumNPCType getFromOrdinal(int ordinal)
      Finds the NPC enum from its enum ordinal.
      Parameters:
      ordinal - The ordinal to find an NPC enum from.
      Returns:
      The corresponding NPC enum.
    • getFromString

      public static EnumNPCType getFromString(String npcType)
    • constructNew

      public NPCEntity constructNew(net.minecraft.world.level.Level world)