diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftHopper.java b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftHopper.java index 2995b40741..f3c4d3835a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftHopper.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/block/CraftHopper.java @@ -40,4 +40,17 @@ public class CraftHopper extends CraftLootable implements Hop public CraftHopper copy(Location location) { return new CraftHopper(this, location); } + + // Paper start - Expanded Hopper API + @Override + public void setTransferCooldown(final int cooldown) { + com.google.common.base.Preconditions.checkArgument(cooldown >= 0, "Hooper transfer cooldown cannot be negative (" + cooldown + ")"); + getSnapshot().setCooldown(cooldown); + } + + @Override + public int getTransferCooldown() { + return getSnapshot().cooldownTime; + } + // Paper end - Expanded Hopper API }