Interface Villager.ReputationType

Enclosing interface:
Villager

public static interface Villager.ReputationType
Reputation type used in gossips.
  • Field Details

    • 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.
  • 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