Class Reputation

java.lang.Object
com.destroystokyo.paper.entity.villager.Reputation

@NullMarked public final class Reputation extends Object
A reputation score for a player on a villager.
  • Constructor Details

  • Method Details

    • getReputation

      public int getReputation(ReputationType type)
      Gets the reputation value for a specific ReputationType.
      Parameters:
      type - The type of reputation to get.
      Returns:
      The value of the type.
    • setReputation

      public void setReputation(ReputationType type, int value)
      Sets the reputation value for a specific ReputationType.
      Parameters:
      type - The type of reputation to set.
      value - The value of the type.
    • hasReputationSet

      public boolean hasReputationSet(ReputationType type)
      Gets if a reputation value is currently set for a specific ReputationType.
      Parameters:
      type - The type to check
      Returns:
      If there is a value for this type set.