From 984f9eceb697736fdb320cd9124bc11d97bec5f0 Mon Sep 17 00:00:00 2001 From: Buuz135 Date: Sun, 14 Nov 2021 16:01:22 +0100 Subject: [PATCH] Expose some Black Hole Capabilities, closes #1201 --- .../block/transportstorage/tile/BlackHoleControllerTile.java | 4 ++++ .../industrial/capability/BLHBlockItemHandlerItemStack.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleControllerTile.java b/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleControllerTile.java index 17a90d898..f8325d3ab 100644 --- a/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleControllerTile.java +++ b/src/main/java/com/buuz135/industrial/block/transportstorage/tile/BlackHoleControllerTile.java @@ -96,6 +96,10 @@ public ActionResultType onActivated(PlayerEntity playerIn, Hand hand, Direction return ActionResultType.SUCCESS; } + public InventoryComponent getUnitsStorage() { + return units_storage; + } + private class BlackHoleControllerInventory implements IItemHandler{ @Override diff --git a/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java b/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java index 7f051af5d..d5a68f182 100644 --- a/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java +++ b/src/main/java/com/buuz135/industrial/capability/BLHBlockItemHandlerItemStack.java @@ -122,7 +122,7 @@ public ItemStack getStack(){ return ItemStack.EMPTY; } - private boolean getVoid(){ + public boolean getVoid(){ CompoundNBT tag = getTag(); if (tag != null && tag.contains("voidItems")){ return tag.getBoolean("voidItems");