Add empty inventory constant

Satisfies the nonnull requirement if its ever needed.
This commit is contained in:
KnightMiner committed 2020-08-09 13:48:21 -05:00
1 parent ea35fb298f
commit 5655cd60e2
1 file changed
+3
@@ -6,6 +6,9 @@ import net.minecraft.item.ItemStack;
* Base inventory for inventories that do not use items
*/
public interface IEmptyInventory extends IReadOnlyInventory {
/** Empty inventory instance, for cases where a nonnull inventory is required */
IEmptyInventory EMPTY = new IEmptyInventory() {};
/** @deprecated unused method */
@Deprecated
@Override