mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Add clear reputation API
This commit is contained in:
parent
5a933b8217
commit
0de2f11f56
@ -167,5 +167,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * for all players mapped by their {@link UUID unique IDs}.
|
||||
+ */
|
||||
+ public void setReputations(@NotNull Map<UUID, com.destroystokyo.paper.entity.villager.Reputation> reputations);
|
||||
+
|
||||
+ /**
|
||||
+ * Clear all reputations from this villager. This removes every single
|
||||
+ * reputation regardless of its impact and the player associated.
|
||||
+ */
|
||||
+ public void clearReputations();
|
||||
+ // Paper end
|
||||
}
|
||||
|
@ -143,5 +143,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ setReputation(entry.getKey(), entry.getValue());
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public void clearReputations() {
|
||||
+ getHandle().getReputation().getReputations().clear();
|
||||
+ }
|
||||
+ // Paper end
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user