Enum Class ReputationType
- All Implemented Interfaces:
Serializable
,Comparable<ReputationType>
,Constable
A type of reputation gained with a
Villager
.
All types but MAJOR_POSITIVE
are shared to other villagers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA gossip with a majorly negative effect.A gossip with a major positive effect.A gossip with a minor negative effect.A gossip with a minor positive effect.A gossip with a minor positive effect. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReputationType
Returns the enum constant of this class with the specified name.static ReputationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAJOR_NEGATIVE
A gossip with a majorly negative effect. This is only gained through killing a nearby villager. -
MINOR_NEGATIVE
A gossip with a minor negative effect. This is only gained through damaging a villager. -
MINOR_POSITIVE
A gossip with a minor positive effect. This is only gained through curing a zombie villager. -
MAJOR_POSITIVE
A gossip with a major positive effect. This is only gained through curing a zombie villager. -
TRADING
A gossip with a minor positive effect. This is only gained through trading with a villager.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-