接口 Villager.ReputationType

封闭接口:
Villager

public static interface Villager.ReputationType
用于八卦中的声誉类型。
  • 字段详细资料

    • MAJOR_NEGATIVE

      static final Villager.ReputationType MAJOR_NEGATIVE
      重大负面声誉。由杀死村民引起。
    • MINOR_NEGATIVE

      static final Villager.ReputationType MINOR_NEGATIVE
      轻微负面声誉。由攻击村民引起。
    • MINOR_POSITIVE

      static final Villager.ReputationType MINOR_POSITIVE
      轻微正面声誉。由治愈村民引起。
    • MAJOR_POSITIVE

      static final Villager.ReputationType MAJOR_POSITIVE
      重大正面声誉。由治愈村民引起,它永远不会在八卦中共享,也永远不会衰减。
    • TRADING

      static final Villager.ReputationType TRADING
      交易声誉。它与轻微正面声誉具有相同的权重,由与村民交易引起。
  • 方法详细资料

    • getMaxValue

      int getMaxValue()
      获取此类型的最大声誉值。
      返回:
      此声誉类型的最大值

      原文:Get maximum reputation value of this 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.