diff --git a/paper-api/src/main/java/org/bukkit/block/Hopper.java b/paper-api/src/main/java/org/bukkit/block/Hopper.java new file mode 100644 index 0000000000..fe767c82c0 --- /dev/null +++ b/paper-api/src/main/java/org/bukkit/block/Hopper.java @@ -0,0 +1,8 @@ +package org.bukkit.block; + +/** + * Represents a hopper. + */ +public interface Hopper extends BlockState, ContainerBlock { + +} diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryType.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryType.java index a86ce50424..7820a36ad1 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryType.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryType.java @@ -56,6 +56,10 @@ public enum InventoryType { * A beacon inventory, with 1 CRAFTING slot */ BEACON(1, "container.beacon"), + /** + * A hopper inventory, with 5 slots of type CONTAINER. + */ + HOPPER(5, "Item Hopper"), ; private final int size;