Enum FoxEntity.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FoxEntity.Type>
    Enclosing class:
    FoxEntity

    public static enum FoxEntity.Type
    extends java.lang.Enum<FoxEntity.Type>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      RED  
      SNOW  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Type​(int p_i241911_3_, java.lang.String p_i241911_4_, RegistryKey<Biome>... p_i241911_5_)  
    • Field Detail

      • BY_NAME

        private static final java.util.Map<java.lang.String,​FoxEntity.Type> BY_NAME
      • id

        private final int id
      • name

        private final java.lang.String name
    • Constructor Detail

      • Type

        private Type​(int p_i241911_3_,
                     java.lang.String p_i241911_4_,
                     RegistryKey<Biome>... p_i241911_5_)
    • Method Detail

      • values

        public static FoxEntity.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FoxEntity.Type c : FoxEntity.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FoxEntity.Type valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
      • getId

        public int getId()
      • byName

        public static FoxEntity.Type byName​(java.lang.String p_221087_0_)