Package org.bukkit.entity
Interface Villager.ReputationType
- Enclosing interface:
- Villager
public static interface Villager.ReputationType
Reputation type used in gossips.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Villager.ReputationTypeMajor negative reputation.static final Villager.ReputationTypeMajor positive reputation.static final Villager.ReputationTypeMinor negative reputation.static final Villager.ReputationTypeMinor positive reputation.static final Villager.ReputationTypeTrading reputation.
- 
Method SummaryModifier and TypeMethodDescriptionintGet maximum reputation value of this type.intGet weight of this reputation type.
- 
Field Details- 
MAJOR_NEGATIVEMajor negative reputation. It is caused by killing a villager.
- 
MINOR_NEGATIVEMinor negative reputation. It is caused by attacking a villager.
- 
MINOR_POSITIVEMinor positive reputation. It is caused by curing a villager.
- 
MAJOR_POSITIVEMajor positive reputation. It is caused by curing a villager, it is never shared in gossip and never decays.
- 
TRADINGTrading reputation. It has the same weight as minor positive reputation and is caused by trading with a villager.
 
- 
- 
Method Details- 
getMaxValueint getMaxValue()Get maximum reputation value of this type.- Returns:
- maximum value of this reputation type
 
- 
getWeightint 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
 
 
-