Add ShulkerBoxes to the LootTable API
This commit is contained in:
parent
26e4ac4330
commit
cb66c8dce7
2 changed files with 51 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
From ca84cb2143adcd3dbbb2f3143e9088add4e2ee28 Mon Sep 17 00:00:00 2001
|
||||
From acf9054a24ff96c9fa7c238b7679cbe3316d8a42 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Sun, 1 May 2016 15:19:49 -0400
|
||||
Subject: [PATCH] LootTable API
|
||||
|
@ -352,6 +352,26 @@ index 8e5e3e8..c08a1a5 100644
|
|||
+public interface Hopper extends BlockState, InventoryHolder, Lockable, Nameable, LootableInventory { // Paper
|
||||
+
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/block/ShulkerBox.java b/src/main/java/org/bukkit/block/ShulkerBox.java
|
||||
index 003cfb8..7b40df1 100644
|
||||
--- a/src/main/java/org/bukkit/block/ShulkerBox.java
|
||||
+++ b/src/main/java/org/bukkit/block/ShulkerBox.java
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.bukkit.block;
|
||||
|
||||
+import com.destroystokyo.paper.loottable.LootableInventory;
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.Nameable;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
@@ -7,7 +8,7 @@ import org.bukkit.inventory.InventoryHolder;
|
||||
/**
|
||||
* Represents a ShulkerBox.
|
||||
*/
|
||||
-public interface ShulkerBox extends BlockState, InventoryHolder, Lockable, Nameable {
|
||||
+public interface ShulkerBox extends BlockState, InventoryHolder, Lockable, Nameable, LootableInventory { // Paper
|
||||
|
||||
/**
|
||||
* Get the {@link DyeColor} corresponding to this ShulkerBox
|
||||
--
|
||||
2.10.2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue