Enum GossipType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GossipType>

    public enum GossipType
    extends java.lang.Enum<GossipType>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GossipType​(java.lang.String p_i50307_3_, int p_i50307_4_, int p_i50307_5_, int p_i50307_6_, int p_i50307_7_)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GossipType byId​(java.lang.String p_220929_0_)  
      static GossipType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static GossipType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • MAJOR_NEGATIVE

        public static final GossipType MAJOR_NEGATIVE
      • MINOR_NEGATIVE

        public static final GossipType MINOR_NEGATIVE
      • MINOR_POSITIVE

        public static final GossipType MINOR_POSITIVE
      • MAJOR_POSITIVE

        public static final GossipType MAJOR_POSITIVE
    • Field Detail

      • id

        public final java.lang.String id
      • weight

        public final int weight
      • max

        public final int max
      • decayPerDay

        public final int decayPerDay
      • decayPerTransfer

        public final int decayPerTransfer
      • BY_ID

        private static final java.util.Map<java.lang.String,​GossipType> BY_ID
    • Constructor Detail

      • GossipType

        private GossipType​(java.lang.String p_i50307_3_,
                           int p_i50307_4_,
                           int p_i50307_5_,
                           int p_i50307_6_,
                           int p_i50307_7_)
    • Method Detail

      • values

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

        public static GossipType 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
      • byId

        @Nullable
        public static GossipType byId​(java.lang.String p_220929_0_)