Class Reputation
java.lang.Object
com.destroystokyo.paper.entity.villager.Reputation
A reputation score for a player on a villager.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty reputation.Reputation(Map<ReputationType, Integer> reputation) Creates a reputation backed by the given map, so changes to the reputation are made to the map. -
Method Summary
Modifier and TypeMethodDescriptionintgetReputation(ReputationType type) Gets the reputation value for a specificReputationType.Gets a set of alltypesthat have a reputation value set.booleanGets if a reputation value is currently set for a specificReputationType.voidsetReputation(ReputationType type, int value) Sets the reputation value for a specificReputationType.
-
Constructor Details
-
Reputation
public Reputation()Creates an empty reputation. -
Reputation
Creates a reputation backed by the given map, so changes to the reputation are made to the map.- Parameters:
reputation- the reputation values by type
-
-
Method Details
-
getReputation
Gets the reputation value for a specificReputationType. -
setReputation
Sets the reputation value for a specificReputationType. -
hasReputationSet
Gets if a reputation value is currently set for a specificReputationType. -
getReputationsSet
-