Package org.bukkit.entity
Interface Villager.ReputationType
- Enclosing interface:
Villager
public static interface Villager.ReputationType
Reputation type used in gossips.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Villager.ReputationType
Major negative reputation.static final Villager.ReputationType
Major positive reputation.static final Villager.ReputationType
Minor negative reputation.static final Villager.ReputationType
Minor positive reputation.static final Villager.ReputationType
Trading reputation. -
Method Summary
Modifier and TypeMethodDescriptionint
Get maximum reputation value of this type.int
Get weight of this reputation type.
-
Field Details
-
MAJOR_NEGATIVE
Major negative reputation. It is caused by killing a villager. -
MINOR_NEGATIVE
Minor negative reputation. It is caused by attacking a villager. -
MINOR_POSITIVE
Minor positive reputation. It is caused by curing a villager. -
MAJOR_POSITIVE
Major positive reputation. It is caused by curing a villager, it is never shared in gossip and never decays. -
TRADING
Trading reputation. It has the same weight as minor positive reputation and is caused by trading with a villager.
-
-
Method Details
-
getMaxValue
int getMaxValue()Get maximum reputation value of this type.- Returns:
- maximum value of this reputation type
-
getWeight
int getWeight()Get weight of this reputation type.When calculating total reputation of an entity, reputation of each type is multiplied by its weight.
- Returns:
- weight assigned to this reputation type
-