2020-05-02 00:03:47 +02:00
|
|
|
From 06142d327789e096f5fabec10ddf2667a892c094 Mon Sep 17 00:00:00 2001
|
2020-04-27 08:13:41 +02:00
|
|
|
From: zbk <zbk@projectsolaris.net>
|
|
|
|
Date: Sun, 26 Apr 2020 23:49:03 -0400
|
|
|
|
Subject: [PATCH] Villager Restocks API
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Villager.java b/src/main/java/org/bukkit/entity/Villager.java
|
2020-05-02 00:03:47 +02:00
|
|
|
index ef48ad9b2..d15791530 100644
|
2020-04-27 08:13:41 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Villager.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Villager.java
|
|
|
|
@@ -77,6 +77,20 @@ public interface Villager extends AbstractVillager {
|
|
|
|
*/
|
|
|
|
public void setVillagerExperience(int experience);
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ /**
|
|
|
|
+ * Gets the amount of times a villager has restocked their trades today
|
|
|
|
+ * @return The amount of trade restocks.
|
|
|
|
+ */
|
|
|
|
+ public int getRestocksToday();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sets the amount of times a villager has restocked their trades today
|
|
|
|
+ * @param restocksToday new restock count
|
|
|
|
+ */
|
|
|
|
+ public void setRestocksToday(int restocksToday);
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* Attempts to make this villager sleep at the given location.
|
|
|
|
* <br>
|
|
|
|
--
|
2020-05-02 00:03:47 +02:00
|
|
|
2.26.2
|
2020-04-27 08:13:41 +02:00
|
|
|
|