Allow bins to be accessed from all sides
@@ -14,7 +14,6 @@ import mekanism.common.base.IActiveState;
import mekanism.common.base.ILogisticalTransporter;
import mekanism.common.base.ITierUpgradeable;
import mekanism.common.capabilities.Capabilities;
-import mekanism.common.capabilities.IToggleableCapability;
import mekanism.common.content.transporter.TransitRequest;
import mekanism.common.content.transporter.TransitRequest.TransitResponse;
import mekanism.common.item.ItemBlockBasic;
@@ -44,7 +43,7 @@ import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;
public class TileEntityBin extends TileEntityBasicBlock implements ISidedInventory, IActiveState, IConfigurable,
- ITierUpgradeable, IToggleableCapability {
+ ITierUpgradeable {
private static final int[] UPSLOTS = {1};
private static final int[] DOWNSLOTS = {0};
@@ -614,18 +613,13 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
@Override
public boolean hasCapability(@Nonnull Capability<?> capability, EnumFacing side) {
- if (isCapabilityDisabled(capability, side)) {
- return false;
- }
return capability == Capabilities.CONFIGURABLE_CAPABILITY
|| capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY || super.hasCapability(capability, side);
}
@Override
public <T> T getCapability(@Nonnull Capability<T> capability, EnumFacing side) {
- if (isCapabilityDisabled(capability, side)) {
- return null;
- } else if (capability == Capabilities.CONFIGURABLE_CAPABILITY) {
+ if (capability == Capabilities.CONFIGURABLE_CAPABILITY) {
return Capabilities.CONFIGURABLE_CAPABILITY.cast(this);
} else if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
return CapabilityItemHandler.ITEM_HANDLER_CAPABILITY.cast(myItemHandler);
@@ -634,14 +628,6 @@ public class TileEntityBin extends TileEntityBasicBlock implements ISidedInvento
return super.getCapability(capability, side);
}
- @Override
- public boolean isCapabilityDisabled(@Nonnull Capability<?> capability, EnumFacing side) {
- if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
- return side != EnumFacing.UP && side != EnumFacing.DOWN;
- }
- return false;
- }
-
private class BinItemHandler implements IItemHandler {
private TileEntityBin tileEntityBin;
