@Override
public void onUnlock(ItemStack lock, ItemStack key, ILockable lockable,
EntityPlayer player, boolean success) {
if (success) return;
// Power is 2 when a key was used to open the lock, 1 otherwise.
EnumLockInteraction interaction = ((key != null) ? EnumLockInteraction.PICK : EnumLockInteraction.OPEN);
applyEffects(lock, lockable, player, interaction);
}