public void dropContents() {
   for (int slot = 0; slot < contents.length; slot++) {
     ItemStack stack = contents[slot];
     if (stack == null) continue;
     dropItemStack(stack);
   }
 }
 public void dropLock() {
   ItemStack lock = getLock();
   if (lock == null) return;
   dropItemStack(lock);
   setLock(null);
 }