Enum EntityClassification

    • Field Detail

      • max

        private final int max
      • isFriendly

        private final boolean isFriendly
      • isPersistent

        private final boolean isPersistent
      • name

        private final java.lang.String name
      • despawnDistance

        private final int despawnDistance
    • Constructor Detail

      • EntityClassification

        private EntityClassification​(java.lang.String p_i231492_3_,
                                     int p_i231492_4_,
                                     boolean p_i231492_5_,
                                     boolean p_i231492_6_,
                                     int p_i231492_7_)
    • Method Detail

      • values

        public static EntityClassification[] 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 (EntityClassification c : EntityClassification.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EntityClassification 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()
      • getMaxInstancesPerChunk

        public int getMaxInstancesPerChunk()
      • isFriendly

        public boolean isFriendly()
      • isPersistent

        public boolean isPersistent()
      • create

        public static EntityClassification create​(java.lang.String name,
                                                  java.lang.String id,
                                                  int maxNumberOfCreatureIn,
                                                  boolean isPeacefulCreatureIn,
                                                  boolean isAnimalIn,
                                                  int despawnDistance)
      • init

        @Deprecated
        public void init()
        Deprecated.
        Description copied from interface: IExtensibleEnum
        Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.
        Specified by:
        init in interface IExtensibleEnum
      • getDespawnDistance

        public int getDespawnDistance()
      • getNoDespawnDistance

        public int getNoDespawnDistance()