Add Hopper block state and inventory type. Adds BUKKIT-3749
By: Michael Limiero <mike5713@gmail.com>
This commit is contained in:
parent
50f297d941
commit
08b0ee9e53
2 changed files with 12 additions and 0 deletions
8
paper-api/src/main/java/org/bukkit/block/Hopper.java
Normal file
8
paper-api/src/main/java/org/bukkit/block/Hopper.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package org.bukkit.block;
|
||||
|
||||
/**
|
||||
* Represents a hopper.
|
||||
*/
|
||||
public interface Hopper extends BlockState, ContainerBlock {
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue