@@ -0,0 +1,1296 @@
+package boilerplate.common.baseclasses;%0A%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.entity.player.InventoryPlayer;%0Aimport net.minecraft.inventory.Container;%0Aimport net.minecraft.inventory.Slot;%0Aimport net.minecraft.item.ItemStack;%0A%0Apublic class BaseContainer extends Container%0A%7B%0A%09private static BaseTileWithInventory tileent;%0A%0A%09@Override%0A%09public boolean canInteractWith(EntityPlayer p_75145_1_)%0A%09%7B%0A%09%09return true;%0A%09%7D%0A%09@Override%0A%09public ItemStack transferStackInSlot(EntityPlayer player, int i) %7B%0A%09  Slot slot = getSlot(i);%0A%0A%09  if(slot != null && slot.getHasStack()) %7B%0A%09    ItemStack itemstack = slot.getStack();%0A%09    ItemStack result = itemstack.copy();%0A%0A%09    if(i %3E= 36) %7B%0A%09      if(!mergeItemStack(itemstack, 0, 36, false)) %7B%0A%09        return null;%0A%09      %7D%0A%09    %7D else if(!mergeItemStack(itemstack, 36, 36 + BaseContainer.getTile().getSizeInventory(), false)) %7B%0A%09      return null;%0A%09    %7D%0A%0A%09    if(itemstack.stackSize == 0) %7B%0A%09      slot.putStack(null);%0A%09    %7D else %7B%0A%09      slot.onSlotChanged();%0A%09    %7D%0A%09    slot.onPickupFromSlot(player, itemstack);%0A%09    return result;%0A%09  %7D%0A%09  return null;%0A%09%7D%0A%09public static BaseTileWithInventory getTile()%0A%09%7B%0A%09%09return tileent;%0A%09%7D%0A%09public static void setTile(BaseTileWithInventory tileent)%0A%09%7B%0A%09%09BaseContainer.tileent = tileent;%0A%09%7D%0A%7D%0A

Create a BaseContainer class