mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 20:21:51 +01:00
96d5e6ca48
Currently includes generated key holder classes for types used in the Registry Modification API
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index a91400cd8bb4c72d1f3200a17f6de025540fe09d..4128b848ec739308694d54d9e859c28185f42a63 100644
|
|
--- a/src/main/java/org/bukkit/entity/Villager.java
|
|
+++ b/src/main/java/org/bukkit/entity/Villager.java
|
|
@@ -78,6 +78,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>
|