接口 Villager.ReputationType
- 封闭接口:
- Villager
public static interface Villager.ReputationType
Reputation type used in gossips.
-
字段概要
字段修饰符和类型字段说明static 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. -
方法概要
修饰符和类型方法说明int
Get maximum reputation value of this type.int
Get weight of this reputation type.
-
字段详细资料
-
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.
-
-
方法详细资料
-
getMaxValue
int getMaxValue()Get maximum reputation value of this type.- 返回:
- 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.
- 返回:
- weight assigned to this reputation type
-