reformatted all src files (#141)
This commit is contained in:
@@ -6,21 +6,17 @@ import net.minecraftforge.items.CapabilityItemHandler;
|
||||
import net.minecraftforge.items.IItemHandler;
|
||||
|
||||
|
||||
public abstract class BlockingInventoryAdaptor implements Iterable<ItemSlot>
|
||||
{
|
||||
public static BlockingInventoryAdaptor getAdaptor( final TileEntity te, final EnumFacing d )
|
||||
{
|
||||
if( te != null && te.hasCapability( CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, d ) )
|
||||
{
|
||||
// Attempt getting an IItemHandler for the given side via caps
|
||||
IItemHandler itemHandler = te.getCapability( CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, d );
|
||||
if( itemHandler != null )
|
||||
{
|
||||
return new BlockingItemHandler( itemHandler, te.getBlockType().getRegistryName().getResourceDomain() );
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public abstract class BlockingInventoryAdaptor implements Iterable<ItemSlot> {
|
||||
public static BlockingInventoryAdaptor getAdaptor(final TileEntity te, final EnumFacing d) {
|
||||
if (te != null && te.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, d)) {
|
||||
// Attempt getting an IItemHandler for the given side via caps
|
||||
IItemHandler itemHandler = te.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, d);
|
||||
if (itemHandler != null) {
|
||||
return new BlockingItemHandler(itemHandler, te.getBlockType().getRegistryName().getResourceDomain());
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract boolean containsBlockingItems();
|
||||
public abstract boolean containsBlockingItems();
|
||||
}
|
||||
Reference in New Issue
Block a user