mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +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}.
|
+ * for all players mapped by their {@link UUID unique IDs}.
|
||||||
+ */
|
+ */
|
||||||
+ public void setReputations(@NotNull Map<UUID, com.destroystokyo.paper.entity.villager.Reputation> reputations);
|
+ 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
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
@ -143,5 +143,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ setReputation(entry.getKey(), entry.getValue());
|
+ setReputation(entry.getKey(), entry.getValue());
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
+
|
||||||
|
+ @Override
|
||||||
|
+ public void clearReputations() {
|
||||||
|
+ getHandle().getReputation().getReputations().clear();
|
||||||
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user