接口 Villager.ReputationType

封闭接口:
Villager

public static interface Villager.ReputationType
Reputation type used in gossips.
  • 字段详细资料

    • MAJOR_NEGATIVE

      static final Villager.ReputationType MAJOR_NEGATIVE
      Major negative reputation. It is caused by killing a villager.
    • MINOR_NEGATIVE

      static final Villager.ReputationType MINOR_NEGATIVE
      Minor negative reputation. It is caused by attacking a villager.
    • MINOR_POSITIVE

      static final Villager.ReputationType MINOR_POSITIVE
      Minor positive reputation. It is caused by curing a villager.
    • MAJOR_POSITIVE

      static final Villager.ReputationType MAJOR_POSITIVE
      Major positive reputation. It is caused by curing a villager, it is never shared in gossip and never decays.
    • TRADING

      static final Villager.ReputationType 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