Enum Class GossipType

java.lang.Object
java.lang.Enum<GossipType>
net.minecraft.village.GossipType
All Implemented Interfaces:
Serializable, Comparable<GossipType>, Constable

public enum GossipType extends Enum<GossipType>
  • Enum Constant Details

    • 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
    • TRADING

      public static final GossipType TRADING
  • Field Details

    • id

      public final 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 Map<String,GossipType> BY_ID
  • Constructor Details

    • GossipType

      private GossipType(String p_i50307_3_, int p_i50307_4_, int p_i50307_5_, int p_i50307_6_, int p_i50307_7_)
  • Method Details

    • values

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

      @Nullable public static GossipType byId(String p_220929_0_)