Package net.mcft.copy.betterstorage.api.lock

Examples of net.mcft.copy.betterstorage.api.lock.IKey.unlock()


   
    ItemStack[] items = StackUtils.getStackContents(keyring, 9);
    for (ItemStack key : items) {
      if (key == null) continue;
      IKey keyType = (IKey)key.getItem();
      if (keyType.unlock(key, lock, false))
        return true;
    }
   
    return false;
   
View Full Code Here


      }
    } else if (StackUtils.isKey(holding)) {
      IKey keyType = (IKey)holding.getItem();
      ILock lockType = (ILock)lock.getItem();
     
      boolean success = keyType.unlock(holding, lock, true);
      lockType.onUnlock(lock, holding, lockable, player, success);
      if (!success) return true;
     
      if (player.isSneaking()) {
        AxisAlignedBB box = getHighlightBox();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.